Merged in feature/MAW-855-import-code-into-aws (pull request #2)
code import from pantheon * code import from pantheon
This commit is contained in:
@@ -78,32 +78,19 @@ abstract class WPSEO_Watcher {
|
||||
$show_notification = true;
|
||||
|
||||
/**
|
||||
* Filter: "wpseo_enable_notification_{$watch_type}_{$notification_type}" - Filter whether or not the
|
||||
* notification for a given watch type and notification type should be shown.
|
||||
*
|
||||
* @deprecated 12.9.0. Use the {@see "Yoast\WP\SEO\enable_notification_{$watch_type}_{$notification_type}"} filter instead.
|
||||
*
|
||||
* @api bool $show_notification Defaults to true.
|
||||
*/
|
||||
$show_notification = apply_filters_deprecated(
|
||||
'wpseo_enable_notification_' . $this->watch_type . '_' . $notification_type,
|
||||
[ $show_notification ],
|
||||
'YoastSEO Premium 12.9.0',
|
||||
'Yoast\WP\SEO\enable_notification_{$watch_type}_{$notification_type}'
|
||||
);
|
||||
|
||||
/**
|
||||
* Filter: "Yoast\WP\SEO\enable_notification_{$watch_type}_{$notification_type}" - Filter whether or
|
||||
* Filter: 'Yoast\WP\SEO\enable_notification_{$watch_type}_{$notification_type}' - Filter whether or
|
||||
* not the notification for a given watch type and notification type should be shown.
|
||||
*
|
||||
* Note: This is a Premium plugin-only hook.
|
||||
*
|
||||
* @since 12.9.0
|
||||
* @since 16.5
|
||||
*
|
||||
* @see https://developer.yoast.com/customization/yoast-seo-premium/disabling-automatic-redirects-notifications
|
||||
*
|
||||
* @api bool $show_notification Defaults to true.
|
||||
*/
|
||||
$show_notification = apply_filters(
|
||||
"Yoast\WP\SEO\enable_notification_{$this->watch_type}_{$notification_type}",
|
||||
'Yoast\WP\SEO\enable_notification_' . $this->watch_type . '_' . $notification_type,
|
||||
$show_notification
|
||||
);
|
||||
|
||||
@@ -270,7 +257,7 @@ abstract class WPSEO_Watcher {
|
||||
* @param string $url The URL that will be redirected.
|
||||
* @param string $id The ID of the element.
|
||||
*
|
||||
* @return string.
|
||||
* @return string
|
||||
*/
|
||||
protected function get_delete_action_list( $url, $id ) {
|
||||
return sprintf(
|
||||
|
||||
Reference in New Issue
Block a user