Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verification tools: remove old Tools interface #21846

Merged
merged 1 commit into from
Nov 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: enhancement

Verification tools: remove old interface in the Tools menu, in favor of the newer settings in the Jetpack dashboard.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

use Automattic\Jetpack\Redirect;

// Edit here to add new services
function jetpack_verification_services() {
return array(
Expand Down Expand Up @@ -77,16 +75,3 @@ function jetpack_verification_print_meta() {
}
}
add_action( 'wp_head', 'jetpack_verification_print_meta', 1 );

function jetpack_verification_tool_box() {
?>
<div class="jp-verification-tools card">
<h3 class="title"><?php esc_html_e( 'Website Verification Services', 'jetpack' ); ?>&nbsp;<a href="<?php echo esc_url( Redirect::get_url( 'jetpack-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 );