| @@ -21,8 +21,10 @@ | ||
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * Handles if the notification should be added or removed. |
| 25 | + * | |
| 26 | + * @return void | |
| 25 | 27 | */ |
| 26 | 28 | public function handle_notification() { |
| 27 | 29 | $company_or_person_user_id = WPSEO_Options::get( 'company_or_person_user_id', false ); |
| 28 | 30 | if ( WPSEO_Options::get( 'company_or_person' ) === 'person' && empty( $company_or_person_user_id ) ) { |
| @@ -34,8 +36,10 @@ | ||
| 34 | 36 | } |
| 35 | 37 | |
| 36 | 38 | /** |
| 37 | 39 | * Adds a notification to the notification center. |
| 40 | + * | |
| 41 | + * @return void | |
| 38 | 42 | */ |
| 39 | 43 | protected function add_notification() { |
| 40 | 44 | $notification_center = Yoast_Notification_Center::get(); |
| 41 | 45 | $notification_center->add_notification( $this->get_notification() ); |
| @@ -42,8 +46,10 @@ | ||
| 42 | 46 | } |
| 43 | 47 | |
| 44 | 48 | /** |
| 45 | 49 | * Removes a notification to the notification center. |
| 50 | + * | |
| 51 | + * @return void | |
| 46 | 52 | */ |
| 47 | 53 | protected function remove_notification() { |
| 48 | 54 | $notification_center = Yoast_Notification_Center::get(); |
| 49 | 55 | $notification_center->remove_notification( $this->get_notification() ); |
| @@ -57,10 +63,10 @@ | ||
| 57 | 63 | protected function get_notification() { |
| 58 | 64 | $message = sprintf( |
| 59 | 65 | /* translators: %1$s is a link start tag to the Search Appearance settings, %2$s is the link closing tag. */ |
| 60 | 66 | __( 'You have previously set your site to represent a person. We’ve improved our functionality around Schema and the Knowledge Graph, so you should go in and %1$scomplete those settings%2$s.', 'wordpress-seo' ), |
| 61 | - '<a href="' . esc_url( admin_url( 'admin.php?page=wpseo_titles' ) ) . '">', | |
| 62 | - '</a>' | |
| 67 | + '<a href="' . esc_url( admin_url( 'admin.php?page=wpseo_page_settings#/site-representation' ) ) . '">', | |
| 68 | + '</a>', | |
| 63 | 69 | ); |
| 64 | 70 | |
| 65 | 71 | $notification = new Yoast_Notification( |
| 66 | 72 | $message, |
| @@ -68,9 +74,9 @@ | ||
| 68 | 74 | 'type' => Yoast_Notification::WARNING, |
| 69 | 75 | 'id' => 'wpseo-schema-person-upgrade', |
| 70 | 76 | 'capabilities' => 'wpseo_manage_options', |
| 71 | 77 | 'priority' => 0.8, |
| 72 | - ] | |
| 78 | + ], | |
| 73 | 79 | ); |
| 74 | 80 | |
| 75 | 81 | return $notification; |
| 76 | 82 | } |