Remove the old UI in /tools.php for site verification#10039
Remove the old UI in /tools.php for site verification#10039abidhahmed merged 8 commits intomasterfrom
/tools.php for site verification#10039Conversation
| echo $ver_output; | ||
| } | ||
| } | ||
| add_action( 'wp_head', 'jetpack_verification_print_meta', 1 ); |
There was a problem hiding this comment.
This looks like it would be taking out what is actually printing the verification codes into the site. Is this intentionally being removed?
There was a problem hiding this comment.
Whoops, we do still need that 😬
| * | ||
| * @param bool true Should the Site Verification tools be added to the Tools menu. | ||
| */ | ||
| if ( ! apply_filters( 'jetpack_enable_site_verification', true ) ) |
There was a problem hiding this comment.
We should note in the changelog that this filter is being deprecated.
There was a problem hiding this comment.
@cbauerman you can do one better and add it to this list of deprecated hooks
https://github.com/Automattic/jetpack/blob/master/class.jetpack.php#L6597
This is automated check which relies on Generated by 🚫 dangerJS |
cbauerman
left a comment
There was a problem hiding this comment.
These changes look good to me and work as described!
Requested changes made; did not test revised PR.
gravityrail
left a comment
There was a problem hiding this comment.
This looks good to me. Do we want to replace it with a placeholder that links to the Jetpack Settings area, in case people come here looking for it?
|
Added placeholder card and screenshot. |
| <div class="jp-verification-tools card"> | ||
| <h3 class="title"><?php _e( 'Website Verification Services' , 'jetpack' ) ?> <a href="http://support.wordpress.com/webmaster-tools/" rel="noopener noreferrer" target="_blank">(?)</a></h3> | ||
| <p> | ||
| <?php _e( sprintf( 'You can verify your site using the <a href="%s">"Site verification" tool in Jetpack Settings</a>.', esc_url( admin_url( 'admin.php?page=jetpack#/traffic' ) ) ) ); ?> |
joanrho
left a comment
There was a problem hiding this comment.
@gravityrail LGTM and works as expected, but first please change the (?) link from https://en.support.wordpress.com/webmaster-tools/ to https://jetpack.com/support/site-verification-tools/ instead.
|
Thanks for the feedback @joanrho. This is is now ready to merge. |
Changes proposed in this Pull Request:
This PR removes the "Site Verification Services" card in Tools as it's a duplicate of the site verification card in
/wp-admin/admin.php?page=jetpack#/traffic. Morevoer it seems this former version was not maintained as well as the latter, as it only accepts alpha codes.Testing instructions:
Tools(/wp-admin/tools.php) and notice the screen to verify your site on search engines (titledWebsite Verification Services (?)) has been replaced by a placeholder.Old UI:
New UI:
Website Verification Servicescard is still available and works as expectedProposed changelog entry:
jetpack_enable_site_verificationfilter. We recommend filtering access to verification tools usingjetpack_get_available_modules(docs)