summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYury German <blueknight@gentoo.org>2019-05-22 00:42:33 -0400
committerYury German <blueknight@gentoo.org>2019-05-22 00:42:33 -0400
commite89abce1b01dda89efdf230101d1aa3c877b3b6c (patch)
treecfb27a564c1f4cfff30d18dbf591efd48283b154 /plugins/jetpack/modules/verification-tools/blog-verification-tools.php
parentAdding Twentyninetten (diff)
downloadblogs-gentoo-e89abce1b01dda89efdf230101d1aa3c877b3b6c.tar.gz
blogs-gentoo-e89abce1b01dda89efdf230101d1aa3c877b3b6c.tar.bz2
blogs-gentoo-e89abce1b01dda89efdf230101d1aa3c877b3b6c.zip
Updating of Plugins and Themes
List of Plugins updates -- akismet.4.1.2 google-authenticator.0.52 jetpack.7.3.1 List of Themes Updates -- mantra.3.2.0 twentyfifteen.2.5 twentyfourteen.2.7 Signed-off-by: Yury German <blueknight@gentoo.org>
Diffstat (limited to 'plugins/jetpack/modules/verification-tools/blog-verification-tools.php')
-rw-r--r--plugins/jetpack/modules/verification-tools/blog-verification-tools.php84
1 files changed, 0 insertions, 84 deletions
diff --git a/plugins/jetpack/modules/verification-tools/blog-verification-tools.php b/plugins/jetpack/modules/verification-tools/blog-verification-tools.php
deleted file mode 100644
index 593e80c5..00000000
--- a/plugins/jetpack/modules/verification-tools/blog-verification-tools.php
+++ /dev/null
@@ -1,84 +0,0 @@
-<?php
-
-// Edit here to add new services
-function jetpack_verification_services() {
- return array(
- 'google' => array(
- 'name' => 'Google Search Console',
- 'key' => 'google-site-verification',
- 'format' => 'dBw5CvburAxi537Rp9qi5uG2174Vb6JwHwIRwPSLIK8',
- 'url' => 'https://www.google.com/webmasters/tools/',
- ),
- 'bing' => array(
- 'name' => 'Bing Webmaster Center',
- 'key' => 'msvalidate.01',
- 'format' => '12C1203B5086AECE94EB3A3D9830B2E',
- 'url' => 'http://www.bing.com/webmaster/',
- ),
- 'pinterest' => array(
- 'name' => 'Pinterest Site Verification',
- 'key' => 'p:domain_verify',
- 'format' => 'f100679e6048d45e4a0b0b92dce1efce',
- 'url' => 'https://pinterest.com/website/verify/',
- ),
- 'yandex' => array(
- 'name' => 'Yandex.Webmaster',
- 'key' => 'yandex-verification',
- 'format' => '44d68e1216009f40',
- 'url' => 'https://webmaster.yandex.com/sites/',
- ),
- );
-}
-
-function jetpack_verification_options_init() {
- register_setting(
- 'verification_services_codes_fields',
- 'verification_services_codes',
- array( 'sanitize_callback' => 'jetpack_verification_validate' )
- );
-}
-add_action( 'admin_init', 'jetpack_verification_options_init' );
-add_action( 'rest_api_init', 'jetpack_verification_options_init' );
-
-function jetpack_verification_print_meta() {
- $verification_services_codes = Jetpack_Options::get_option_and_ensure_autoload( 'verification_services_codes', '0' );
- if ( is_array( $verification_services_codes ) ) {
- $ver_output = "<!-- Jetpack Site Verification Tags -->\n";
- foreach ( jetpack_verification_services() as $name => $service ) {
- if ( is_array( $service ) && ! empty( $verification_services_codes[ "$name" ] ) ) {
- if ( preg_match( '#^<meta name="([a-z0-9_\-.:]+)?" content="([a-z0-9_-]+)?" />$#i', $verification_services_codes[ "$name" ], $matches ) ) {
- $verification_code = $matches[2];
- } else {
- $verification_code = $verification_services_codes[ "$name" ];
- }
- $ver_tag = sprintf( '<meta name="%s" content="%s" />', esc_attr( $service['key'] ), esc_attr( $verification_code ) );
- /**
- * Filter the meta tag template used for all verification tools.
- *
- * @module verification-tools
- *
- * @since 3.0.0
- *
- * @param string $ver_tag Verification Tool meta tag.
- */
- $ver_output .= apply_filters( 'jetpack_site_verification_output', $ver_tag );
- $ver_output .= "\n";
- }
- }
- echo $ver_output;
- }
-}
-add_action( 'wp_head', 'jetpack_verification_print_meta', 1 );
-
-function jetpack_verification_tool_box() {
- ?>
- <div class="jp-verification-tools card">
- <h3 class="title"><?php _e( 'Website Verification Services', 'jetpack' ); ?>&nbsp;<a href="https://jetpack.com/support/site-verification-tools/" rel="noopener noreferrer" target="_blank">(?)</a></h3>
- <p>
- <?php printf( __( 'You can verify your site using the <a href="%s">"Site verification" tool in Jetpack Settings</a>.', 'jetpack' ), esc_url( admin_url( 'admin.php?page=jetpack#/traffic' ) ) ); ?>
- </p>
- </div>
- <?php
-}
-
-add_action( 'tool_box', 'jetpack_verification_tool_box', 25 );