| @@ -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__( '« 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 | } |