wp core update 6.6
This commit is contained in:
@@ -215,7 +215,9 @@ if ( current_user_can( 'switch_themes' ) ) {
|
||||
} else {
|
||||
$themes = wp_prepare_themes_for_js( array( wp_get_theme() ) );
|
||||
}
|
||||
wp_reset_vars( array( 'theme', 'search' ) );
|
||||
|
||||
$theme = ! empty( $_REQUEST['theme'] ) ? sanitize_text_field( $_REQUEST['theme'] ) : '';
|
||||
$search = ! empty( $_REQUEST['search'] ) ? sanitize_text_field( $_REQUEST['search'] ) : '';
|
||||
|
||||
wp_localize_script(
|
||||
'theme',
|
||||
@@ -229,12 +231,11 @@ wp_localize_script(
|
||||
'adminUrl' => parse_url( admin_url(), PHP_URL_PATH ),
|
||||
),
|
||||
'l10n' => array(
|
||||
'addNew' => __( 'Add New Theme' ),
|
||||
'search' => __( 'Search Installed Themes' ),
|
||||
'searchPlaceholder' => __( 'Search installed themes...' ), // Placeholder (no ellipsis).
|
||||
'addNew' => __( 'Add New Theme' ),
|
||||
'search' => __( 'Search installed themes' ),
|
||||
/* translators: %d: Number of themes. */
|
||||
'themesFound' => __( 'Number of Themes found: %d' ),
|
||||
'noThemesFound' => __( 'No themes found. Try a different search.' ),
|
||||
'themesFound' => __( 'Number of Themes found: %d' ),
|
||||
'noThemesFound' => __( 'No themes found. Try a different search.' ),
|
||||
),
|
||||
)
|
||||
);
|
||||
@@ -250,14 +251,12 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
<h1 class="wp-heading-inline"><?php esc_html_e( 'Themes' ); ?>
|
||||
<span class="title-count theme-count"><?php echo ! empty( $_GET['search'] ) ? __( '…' ) : count( $themes ); ?></span>
|
||||
</h1>
|
||||
|
||||
<?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?>
|
||||
<a href="<?php echo esc_url( admin_url( 'theme-install.php' ) ); ?>" class="hide-if-no-js page-title-action"><?php echo esc_html__( 'Add New Theme' ); ?></a>
|
||||
<?php endif; ?>
|
||||
|
||||
<form class="search-form"></form>
|
||||
|
||||
<hr class="wp-header-end">
|
||||
<form class="search-form search-themes"><p class="search-box"></p></form>
|
||||
|
||||
<?php
|
||||
if ( ! validate_current_theme() || isset( $_GET['broken'] ) ) {
|
||||
wp_admin_notice(
|
||||
|
||||
Reference in New Issue
Block a user