← All changes
|
src/bulk-editor/user-interface/bulk-editor-integration.php
+6
-3
28.4
→
trunk
View file →
| @@ -18,8 +18,9 @@ | ||
| 18 | 18 | use Yoast\WP\SEO\Helpers\Product_Helper; |
| 19 | 19 | use Yoast\WP\SEO\Helpers\Short_Link_Helper; |
| 20 | 20 | use Yoast\WP\SEO\Helpers\User_Helper; |
| 21 | 21 | use Yoast\WP\SEO\Integrations\Integration_Interface; |
| 22 | +use Yoast\WP\SEO\Integrations\Settings_Integration; | |
| 22 | 23 | use Yoast\WP\SEO\MyYoast_Client\User_Interface\Myyoast_Connection_Data_Presenter; |
| 23 | 24 | |
| 24 | 25 | /** |
| 25 | 26 | * Adds the bulk editor page to the Yoast admin menu. |
| @@ -267,14 +268,16 @@ | ||
| 267 | 268 | |
| 268 | 269 | return [ |
| 269 | 270 | 'contentTypes' => $content_types, |
| 270 | 271 | 'endpoints' => $this->endpoints_repository->get_all_endpoints()->to_array(), |
| 271 | - // These must stay server-generated URLs: the bulk editor assigns them to window.location.href for its | |
| 272 | - // "Back to Tools" / logo navigation. If a link ever derives from request input, validate it with | |
| 273 | - // wp_validate_redirect() here before exposing it, to avoid an open redirect on the front-end. | |
| 272 | + // These must stay server-generated URLs: the bulk editor assigns the dashboard and tools links to | |
| 273 | + // window.location.href for its "Back to Tools" / logo navigation (the settings link is rendered as a plain | |
| 274 | + // link). If a link ever derives from request input, validate it with wp_validate_redirect() here before | |
| 275 | + // exposing it, to avoid an open redirect on the front-end. | |
| 274 | 276 | 'links' => [ |
| 275 | 277 | 'dashboard' => \admin_url( 'admin.php?page=' . General_Page_Integration::PAGE ), |
| 276 | 278 | 'tools' => \admin_url( 'admin.php?page=wpseo_tools' ), |
| 279 | + 'settings' => \admin_url( 'admin.php?page=' . Settings_Integration::PAGE ), | |
| 277 | 280 | ], |
| 278 | 281 | 'nonce' => $this->nonce_repository->get_rest_nonce(), |
| 279 | 282 | 'restRoot' => \esc_url_raw( \rest_url() ), |
| 280 | 283 | 'preferences' => [ |