-
Notifications
You must be signed in to change notification settings - Fork 913
269 show redesigned admin wide notices in the new general page #21644
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
269 show redesigned admin wide notices in the new general page #21644
Conversation
Pull Request Test Coverage Report for Build 18e6ca5b50de7a4e7ebaa982170ac8f2c1ca6859Details
💛 - Coveralls |
4ca272a
to
e8ed22b
Compare
…he-new-general-page
…he-new-general-page
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR 🏗️
I have to admire the seemingly smooth approach you took!
Though, for the non-Yoast ones, I wish there was a PHP part that would filter them out instead of just hiding them like this? Might not be worth the effort though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR && AT ✅
Context
Summary
This PR can be summarized in the following changelog entry:
Relevant technical choices:
Test instructions
Test instructions for the acceptance test before the PR gets merged
This PR can be acceptance tested by following these steps:
For the Premium Deactivated Notice:
For the FTC Notice:
Reset Options
in the Yoast Test helper).For the Webinar notice:
_yoast_alerts_dismissed
rows from the usermeta db table).For the Database Error Notice (NEW TITLE):
src\integrations\admin\migration-error-integration.php
and comment out the following code inregister_hooks
:src\presenters\admin\migration-error-presenter.php
, turn the$debug_info
variable into this:For the Missing SPL Notice (NEW TITLE):
wp-seo-main.php
turnif ( ! $spl_autoload_exists ) {
intoif ( true ) {
and refresh the page(note that this will automatically deactivate Yoast SEO)
For the Incomplete Install Notice (NEW TITLE):
wp-seo-main.php
before theif ( is_readable( $yoast_autoload_file ) ) {
line, add aadd_action( 'admin_init', 'yoast_wpseo_missing_autoload', 1 ); 8000
line and refresh the page(note that this will automatically deactivate Yoast SEO)
For Premium's Needs Upgrade notice:
src\integrations\admin\update-premium-notification.php
turn theif ( $this->version_helper->is_free_upgraded() && $this->version_helper->is_premium_update_available() ) {
line intoif ( true ) {
to trigger the noticeFor Premium's Needs Latest Yoast notice (NEW TITLE):
src\addon-installer.php
turn theMINIMUM_YOAST_SEO_VERSION
value into a larger Yoast version, eg.33.3
The plugin is at the latest version
message)For Local's Needs Yoast SEO Notice (NEW TITLE):
local-seo.php
turn theif ( ! defined( 'WPSEO_VERSION' ) ) {
line intoif ( true ) {
to trigger the noticeFor Local's Needs Organization name and logo Notice (NEW TITLE):
For Local's Needs Latest Yoast notice (NEW TITLE):
local-seo.php
turn theif ( version_compare( WPSEO_VERSION, '22.0-RC0', '<' ) ) {
line into a larger Yoast version, eg.33.3
For News's Needs Upgraded WordPress notice (NEW TITLE):
classes\wpseo-news.php
turn theif ( version_compare( $wp_version, '6.4', '<' ) ) {
line intoif ( true ) {
For News's Needs Yoast SEO notice (NEW TITLE):
classes\wpseo-news.php
turn theif ( $wordpress_seo_version === false ) {
line intoif ( true ) {
For News's Needs Upgraded Yoast SEO notice (NEW TITLE):
classes\wpseo-news.php
turn theif ( version_compare( $wordpress_seo_version, '22.2-RC1', '<' ) ) {
line intoif ( true ) {
For ACF content analysis's Needs ACF notice (NEW TITLE):
For ACF content analysis's Needs Yoast notice (NEW TITLE):
inc\dependencies\dependency-yoast-seo.php
replace bothif ( ! defined( 'WPSEO_VERSION' ) ) {
lines withif ( true ) {
For ACF content analysis's Needs Upgraded Yoast notice (NEW TITLE):
inc\dependencies\dependency-yoast-seo.php
replace bothif ( ! $this->has_required_version() ) {
lines withif ( true ) {
For ACF content analysis's could not be loaded notice (NEW TITLE):
yoast-acf-analysis.php
replaceif ( ! class_exists( 'AC_Yoast_SEO_ACF_Content_Analysis' ) ) {
withif ( true ) {
For Woo SEO's Needs Upgraded WordPress notice (NEW TITLE):
classes\woocommerce-dependencies.php
turn theif ( ! version_compare( $wp_version, '6.4', '>=' ) ) {
line intoif ( true ) {
For Woo SEO's Needs WooCommerce notice (NEW TITLE):
classes\woocommerce-dependencies.php
turn theif ( ! $this->check_woocommerce_exists() ) {
line intoif ( true ) {
For Woo SEO's Needs Yoast SEO notice (NEW TITLE):
classes\woocommerce-dependencies.php
turn theif ( ! $wordpress_seo_version ) {
line intoif ( true ) {
For Woo SEO's Needs Upgraded Yoast SEO notice (NEW TITLE):
classes\woocommerce-dependencies.php
turn theif ( ! version_compare( $wordpress_seo_version, '23.5-RC0', '>=' ) ) {
line intoif ( true ) {
Relevant test scenarios
Test instructions for QA when the code is in the RC
UI changes
Other environments
[shopify-seo]
, added test instructions for Shopify and attached theShopify
label to this PR.Documentation
Quality assurance
Innovation
innovation
label.Fixes https://github.com/Yoast/reserved-tasks/issues/269