diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2018-07-12 10:41:06 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2018-07-12 10:41:06 -0400 |
commit | d38ad7e645bf525ba52f98eb3ac3b911569ba8ad (patch) | |
tree | c71f455934a7ad823422c9eb17e08d029d2c7612 /plugins/jetpack/modules/theme-tools | |
parent | Update akismet 4.0.8 (diff) | |
download | blogs-gentoo-d38ad7e645bf525ba52f98eb3ac3b911569ba8ad.tar.gz blogs-gentoo-d38ad7e645bf525ba52f98eb3ac3b911569ba8ad.tar.bz2 blogs-gentoo-d38ad7e645bf525ba52f98eb3ac3b911569ba8ad.zip |
Update jetpack 6.3.2
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'plugins/jetpack/modules/theme-tools')
5 files changed, 25 insertions, 2 deletions
diff --git a/plugins/jetpack/modules/theme-tools/compat/twentyfifteen.php b/plugins/jetpack/modules/theme-tools/compat/twentyfifteen.php index b48a971f..adaa42b7 100644 --- a/plugins/jetpack/modules/theme-tools/compat/twentyfifteen.php +++ b/plugins/jetpack/modules/theme-tools/compat/twentyfifteen.php @@ -9,6 +9,11 @@ function twentyfifteen_jetpack_setup() { * Add theme support for Responsive Videos. */ add_theme_support( 'jetpack-responsive-videos' ); + + /** + * Add theme support for geo-location. + */ + add_theme_support( 'jetpack-geo-location' ); } add_action( 'after_setup_theme', 'twentyfifteen_jetpack_setup' ); diff --git a/plugins/jetpack/modules/theme-tools/compat/twentyseventeen.php b/plugins/jetpack/modules/theme-tools/compat/twentyseventeen.php new file mode 100644 index 00000000..4a60e504 --- /dev/null +++ b/plugins/jetpack/modules/theme-tools/compat/twentyseventeen.php @@ -0,0 +1,13 @@ +<?php +/** + * Jetpack Compatibility File + * See: http://jetpack.com/ + */ + +function twentyseventeen_jetpack_setup() { + /** + * Add theme support for geo-location. + */ + add_theme_support( 'jetpack-geo-location' ); +} +add_action( 'after_setup_theme', 'twentyseventeen_jetpack_setup' ); diff --git a/plugins/jetpack/modules/theme-tools/compat/twentysixteen.php b/plugins/jetpack/modules/theme-tools/compat/twentysixteen.php index 7e106037..20fd7f5d 100644 --- a/plugins/jetpack/modules/theme-tools/compat/twentysixteen.php +++ b/plugins/jetpack/modules/theme-tools/compat/twentysixteen.php @@ -9,6 +9,11 @@ function twentysixteen_jetpack_setup() { * Add theme support for Responsive Videos. */ add_theme_support( 'jetpack-responsive-videos' ); + + /** + * Add theme support for geo-location. + */ + add_theme_support( 'jetpack-geo-location' ); } add_action( 'after_setup_theme', 'twentysixteen_jetpack_setup' ); diff --git a/plugins/jetpack/modules/theme-tools/content-options/customizer.php b/plugins/jetpack/modules/theme-tools/content-options/customizer.php index 5123d98e..0fea7ae7 100644 --- a/plugins/jetpack/modules/theme-tools/content-options/customizer.php +++ b/plugins/jetpack/modules/theme-tools/content-options/customizer.php @@ -227,7 +227,7 @@ function jetpack_content_options_customize_register( $wp_customize ) { $wp_customize->add_control( new Jetpack_Customize_Control_Title( $wp_customize, 'jetpack_content_featured_images_title', array( 'section' => 'jetpack_content_options', - 'label' => esc_html__( 'Featured Images', 'jetpack' ) . sprintf( '<a href="https://en.support.wordpress.com/featured-images/" class="customize-help-toggle dashicons dashicons-editor-help" title="%1$s" target="_blank"><span class="screen-reader-text">%1$s</span></a>', esc_html__( 'Learn more about Featured Images', 'jetpack' ) ), + 'label' => esc_html__( 'Featured Images', 'jetpack' ) . sprintf( '<a href="https://en.support.wordpress.com/featured-images/" class="customize-help-toggle dashicons dashicons-editor-help" title="%1$s" rel="noopener noreferrer" target="_blank"><span class="screen-reader-text">%1$s</span></a>', esc_html__( 'Learn more about Featured Images', 'jetpack' ) ), 'type' => 'title', 'active_callback' => 'jetpack_post_thumbnail_supports', ) ) ); diff --git a/plugins/jetpack/modules/theme-tools/random-redirect.php b/plugins/jetpack/modules/theme-tools/random-redirect.php index 2e58bee6..78c8f349 100644 --- a/plugins/jetpack/modules/theme-tools/random-redirect.php +++ b/plugins/jetpack/modules/theme-tools/random-redirect.php @@ -45,7 +45,7 @@ function jetpack_matt_random_redirect() { // Persistent AppEngine abuse. ORDER BY RAND is expensive. if ( strstr( $_SERVER['HTTP_USER_AGENT'], 'AppEngine-Google' ) ) - wp_die( 'Please <a href="http://en.support.wordpress.com/contact/" target="_blank">contact support</a>' ); + wp_die( 'Please <a href="http://en.support.wordpress.com/contact/" rel="noopener noreferrer" target="_blank">contact support</a>' ); // Set the category ID if the parameter is set. if ( isset( $_GET['random_cat_id'] ) ) |