Skip to content

Remove the old UI in /tools.php for site verification#10039

Merged
abidhahmed merged 8 commits intomasterfrom
remove/site-verification-in-tools
Aug 28, 2018
Merged

Remove the old UI in /tools.php for site verification#10039
abidhahmed merged 8 commits intomasterfrom
remove/site-verification-in-tools

Conversation

@Tug
Copy link
Copy Markdown
Contributor

@Tug Tug commented Aug 21, 2018

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:

  • Apply this patch
  • Connect to wp-admin on a jetpack site
  • Go to Tools ( /wp-admin/tools.php ) and notice the screen to verify your site on search engines (titled Website Verification Services (?)) has been replaced by a placeholder.

Old UI:

image

New UI:

image

  • Go to Jetpack > Settings > Traffic, scroll down and notice the Website Verification Services card is still available and works as expected

Proposed changelog entry:

  • Remove the outdated "Site Verification Services" card in Tools
  • Removed jetpack_enable_site_verification filter. We recommend filtering access to verification tools using jetpack_get_available_modules (docs)

@Tug Tug self-assigned this Aug 21, 2018
@Tug Tug requested review from cbauerman and gravityrail August 21, 2018 14:20
@Tug Tug requested a review from a team as a code owner August 21, 2018 14:20
@Tug Tug added [Status] Needs Review This PR is ready for review. [Type] Janitorial labels Aug 21, 2018
@Automattic Automattic deleted a comment from jetpackbot Aug 21, 2018
echo $ver_output;
}
}
add_action( 'wp_head', 'jetpack_verification_print_meta', 1 );
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like it would be taking out what is actually printing the verification codes into the site. Is this intentionally being removed?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 ) )
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should note in the changelog that this filter is being deprecated.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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

@kraftbj kraftbj added [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements. and removed [Status] Needs Review This PR is ready for review. labels Aug 21, 2018
@jetpackbot
Copy link
Copy Markdown
Collaborator

jetpackbot commented Aug 21, 2018

Warnings
⚠️

The PR is missing at least one [Status] label. Suggestions: [Status] In Progress, [Status] Needs Review

This is automated check which relies on PULL_REQUEST_TEMPLATE.We encourage you to follow that template as it helps Jetpack maintainers do their job. If you think 'Testing instructions' or 'Proposed changelog entry' are not needed for your PR - please explain why you think so. Thanks for cooperation 🤖

Generated by 🚫 dangerJS

Copy link
Copy Markdown
Contributor

@cbauerman cbauerman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes look good to me and work as described!

@cbauerman cbauerman added [Status] Needs Review This PR is ready for review. and removed [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements. labels Aug 21, 2018
@kraftbj kraftbj dismissed their stale review August 21, 2018 19:01

Requested changes made; did not test revised PR.

@cbauerman cbauerman added [Status] Ready to Merge Go ahead, you can push that green button! and removed [Status] Needs Review This PR is ready for review. labels Aug 21, 2018
@cbauerman cbauerman added this to the 6.5 milestone Aug 22, 2018
Copy link
Copy Markdown
Contributor

@gravityrail gravityrail left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@gravityrail
Copy link
Copy Markdown
Contributor

Added placeholder card and screenshot.

@ghost ghost removed the [Status] Ready to Merge Go ahead, you can push that green button! label Aug 23, 2018
@gravityrail gravityrail added the [Status] Needs Design Review Design has been added. Needs a review! label Aug 23, 2018
<div class="jp-verification-tools card">
<h3 class="title"><?php _e( 'Website Verification Services' , 'jetpack' ) ?>&nbsp;<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' ) ) ) ); ?>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing text domain

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops! Fixed

@joanrho joanrho self-requested a review August 23, 2018 22:48
Copy link
Copy Markdown
Contributor

@joanrho joanrho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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.

@joanrho joanrho removed the [Status] Needs Design Review Design has been added. Needs a review! label Aug 23, 2018
@gravityrail gravityrail added the [Status] Ready to Merge Go ahead, you can push that green button! label Aug 27, 2018
@gravityrail
Copy link
Copy Markdown
Contributor

Thanks for the feedback @joanrho. This is is now ready to merge.

@abidhahmed abidhahmed merged commit d9f45d9 into master Aug 28, 2018
@ghost ghost removed the [Status] Ready to Merge Go ahead, you can push that green button! label Aug 28, 2018
@abidhahmed abidhahmed deleted the remove/site-verification-in-tools branch August 28, 2018 07:44
@abidhahmed abidhahmed added the Enhancement Changes to an existing feature — removing, adding, or changing parts of it label Aug 28, 2018
jeherve added a commit that referenced this pull request Nov 22, 2021
Fixes #21823

The tools have lived in the Jetpack dashboard for more than 3 years, since #10039. Let's retire that redirection now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Type] Janitorial

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants