PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 28.5
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v28.5
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | admin/pages/tools.php +11 -2 27.928.5 View file →
@@ -40,8 +40,9 @@
40 40
41 41 $tools['bulk-editor'] = [
42 42 'title' => __( 'Bulk editor', 'wordpress-seo' ),
43 43 'desc' => __( 'This tool allows you to quickly change titles and descriptions of your posts and pages without having to go into the editor for each page.', 'wordpress-seo' ),
44 + 'url' => admin_url( 'admin.php?page=wpseo_page_bulk_edit' ),
44 45 ];
45 46
46 47 echo '<p>';
47 48 printf(
@@ -55,9 +56,17 @@
55 56
56 57 $admin_url = admin_url( 'admin.php?page=wpseo_tools' );
57 58
58 59 foreach ( $tools as $slug => $tool ) {
59 - $href = ( ! empty( $tool['href'] ) ) ? $admin_url . $tool['href'] : add_query_arg( [ 'tool' => $slug ], $admin_url );
60 + if ( ! empty( $tool['url'] ) ) {
61 + $href = $tool['url'];
62 + }
63 + elseif ( ! empty( $tool['href'] ) ) {
64 + $href = $admin_url . $tool['href'];
65 + }
66 + else {
67 + $href = add_query_arg( [ 'tool' => $slug ], $admin_url );
68 + }
60 69 $attr = ( ! empty( $tool['attr'] ) ) ? $tool['attr'] : '';
61 70
62 71 echo '<li>';
63 72 echo '<strong><a href="', esc_url( $href ), '" ', esc_attr( $attr ), '>', esc_html( $tool['title'] ), '</a></strong><br/>';
@@ -75,9 +84,9 @@
75 84 }
76 85 else {
77 86 echo '<a href="', esc_url( admin_url( 'admin.php?page=wpseo_tools' ) ), '">', esc_html__( '&laquo; Back to Tools page', 'wordpress-seo' ), '</a>';
78 87
79 - $tool_pages = [ 'bulk-editor', 'import-export' ];
88 + $tool_pages = [ 'import-export' ];
80 89
81 90 if ( WPSEO_Utils::allow_system_file_edit() === true && ! is_multisite() ) {
82 91 $tool_pages[] = 'file-editor';
83 92 }