mirror of
https://github.com/WordPress/WordPress.git
synced 2026-06-19 07:37:07 +00:00
Admin Reskin: Fix interactive control heights on mobile.
Give interactive elements a consistent 40px height in the admin mobile viewport on the Add Plugins, Media Library grid, Settings > General, and Add Themes screens. Follow-up to [61645]. Props abcd95, wildworks. Fixes #64999. Built from https://develop.svn.wordpress.org/trunk@62516 git-svn-id: http://core.svn.wordpress.org/trunk@61797 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1418,6 +1418,17 @@ th.action-links {
|
||||
padding: 0;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.wp-filter .search-form input[type="search"] {
|
||||
min-height: 40px;
|
||||
padding: 0 12px;
|
||||
}
|
||||
|
||||
.wp-filter .search-form select,
|
||||
.wp-filter .filter-items select {
|
||||
min-height: 40px;
|
||||
padding: 0 12px 0 24px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 320px) {
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -1417,6 +1417,17 @@ th.action-links {
|
||||
padding: 0;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.wp-filter .search-form input[type="search"] {
|
||||
min-height: 40px;
|
||||
padding: 0 12px;
|
||||
}
|
||||
|
||||
.wp-filter .search-form select,
|
||||
.wp-filter .filter-items select {
|
||||
min-height: 40px;
|
||||
padding: 0 24px 0 12px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 320px) {
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -1799,9 +1799,10 @@ table.form-table td .updated p {
|
||||
p.search-box input[type="search"],
|
||||
p.search-box input[type="text"] {
|
||||
min-height: 40px;
|
||||
padding: 0 12px;
|
||||
}
|
||||
|
||||
p.search-box input[type="submit"] {
|
||||
p.search-box input[type="submit"].button {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
@@ -1945,6 +1946,7 @@ table.form-table td .updated p {
|
||||
.options-general-php input[type="text"].small-text {
|
||||
max-width: 6.25em;
|
||||
margin: 0;
|
||||
min-height: 40px;
|
||||
}
|
||||
|
||||
/* Privacy Policy settings screen */
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -1798,9 +1798,10 @@ table.form-table td .updated p {
|
||||
p.search-box input[type="search"],
|
||||
p.search-box input[type="text"] {
|
||||
min-height: 40px;
|
||||
padding: 0 12px;
|
||||
}
|
||||
|
||||
p.search-box input[type="submit"] {
|
||||
p.search-box input[type="submit"].button {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
@@ -1944,6 +1945,7 @@ table.form-table td .updated p {
|
||||
.options-general-php input[type="text"].small-text {
|
||||
max-width: 6.25em;
|
||||
margin: 0;
|
||||
min-height: 40px;
|
||||
}
|
||||
|
||||
/* Privacy Policy settings screen */
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -1538,13 +1538,6 @@ div.action-links,
|
||||
margin: 0; /* Override existing margins */
|
||||
}
|
||||
|
||||
/* Use compact size for space-constrained plugin cards */
|
||||
.plugin-action-buttons li .button {
|
||||
min-height: 32px;
|
||||
line-height: 2.30769231; /* 30px for 32px min-height */
|
||||
padding: 0 12px;
|
||||
}
|
||||
|
||||
.plugin-card h3 {
|
||||
margin: 0 0 16px 12px;
|
||||
font-size: 18px;
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -1537,13 +1537,6 @@ div.action-links,
|
||||
margin: 0; /* Override existing margins */
|
||||
}
|
||||
|
||||
/* Use compact size for space-constrained plugin cards */
|
||||
.plugin-action-buttons li .button {
|
||||
min-height: 32px;
|
||||
line-height: 2.30769231; /* 30px for 32px min-height */
|
||||
padding: 0 12px;
|
||||
}
|
||||
|
||||
.plugin-card h3 {
|
||||
margin: 0 12px 16px 0;
|
||||
font-size: 18px;
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -375,6 +375,10 @@
|
||||
.find-box-inside {
|
||||
bottom: 57px;
|
||||
}
|
||||
|
||||
#delete_all {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 660px) {
|
||||
@@ -1397,7 +1401,6 @@ audio, video {
|
||||
.wp-filter p.search-box {
|
||||
float: none;
|
||||
width: 100%;
|
||||
margin-bottom: 20px;
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
column-gap: 0;
|
||||
@@ -1414,6 +1417,20 @@ audio, video {
|
||||
top: 46px;
|
||||
left: 10px;
|
||||
}
|
||||
|
||||
.media-frame.mode-grid .media-toolbar select {
|
||||
min-height: 40px;
|
||||
padding: 0 12px 0 24px;
|
||||
}
|
||||
|
||||
.media-frame.mode-grid .media-toolbar input[type="search"] {
|
||||
min-height: 40px;
|
||||
padding: 0 12px;
|
||||
}
|
||||
|
||||
.wp-filter p.search-box {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 600px) {
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+18
-1
@@ -374,6 +374,10 @@
|
||||
.find-box-inside {
|
||||
bottom: 57px;
|
||||
}
|
||||
|
||||
#delete_all {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 660px) {
|
||||
@@ -1396,7 +1400,6 @@ audio, video {
|
||||
.wp-filter p.search-box {
|
||||
float: none;
|
||||
width: 100%;
|
||||
margin-bottom: 20px;
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
column-gap: 0;
|
||||
@@ -1413,6 +1416,20 @@ audio, video {
|
||||
top: 46px;
|
||||
right: 10px;
|
||||
}
|
||||
|
||||
.media-frame.mode-grid .media-toolbar select {
|
||||
min-height: 40px;
|
||||
padding: 0 24px 0 12px;
|
||||
}
|
||||
|
||||
.media-frame.mode-grid .media-toolbar input[type="search"] {
|
||||
min-height: 40px;
|
||||
padding: 0 12px;
|
||||
}
|
||||
|
||||
.wp-filter p.search-box {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 600px) {
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -120,9 +120,6 @@ body.js .theme-browser.search-loading {
|
||||
.theme-browser .theme .theme-actions .button {
|
||||
float: none;
|
||||
margin-right: 3px;
|
||||
min-height: 32px;
|
||||
line-height: 2.30769231; /* 30px for 32px min-height */
|
||||
padding: 0 12px;
|
||||
}
|
||||
|
||||
.theme-browser .theme .theme-actions .button.updated-message::before,
|
||||
@@ -1969,6 +1966,8 @@ body.full-overlay-active {
|
||||
.theme-install-overlay .wp-full-overlay-header .button {
|
||||
float: left;
|
||||
margin: 7px 0 0 10px; /* Vertically center 32px button in 45px header */
|
||||
min-height: 32px;
|
||||
line-height: 2.30769231; /* 30px for 32px height with 13px font */
|
||||
}
|
||||
|
||||
.theme-install-overlay .wp-full-overlay-sidebar {
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -119,9 +119,6 @@ body.js .theme-browser.search-loading {
|
||||
.theme-browser .theme .theme-actions .button {
|
||||
float: none;
|
||||
margin-left: 3px;
|
||||
min-height: 32px;
|
||||
line-height: 2.30769231; /* 30px for 32px min-height */
|
||||
padding: 0 12px;
|
||||
}
|
||||
|
||||
.theme-browser .theme .theme-actions .button.updated-message::before,
|
||||
@@ -1968,6 +1965,8 @@ body.full-overlay-active {
|
||||
.theme-install-overlay .wp-full-overlay-header .button {
|
||||
float: right;
|
||||
margin: 7px 10px 0 0; /* Vertically center 32px button in 45px header */
|
||||
min-height: 32px;
|
||||
line-height: 2.30769231; /* 30px for 32px height with 13px font */
|
||||
}
|
||||
|
||||
.theme-install-overlay .wp-full-overlay-sidebar {
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -247,7 +247,7 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||
if ( $this->is_trash && $this->has_items()
|
||||
&& current_user_can( 'edit_others_posts' )
|
||||
) {
|
||||
submit_button( __( 'Empty Trash' ), 'apply', 'delete_all', false );
|
||||
submit_button( __( 'Empty Trash' ), 'apply button-compact', 'delete_all', false );
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
@@ -351,7 +351,7 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||
?>
|
||||
</label>
|
||||
<input type="search" id="media-search-input" class="search" name="s" value="<?php _admin_search_query(); ?>">
|
||||
<input id="search-submit" type="submit" class="button" value="<?php esc_attr_e( 'Search Media' ); ?>">
|
||||
<input id="search-submit" type="submit" class="button button-compact" value="<?php esc_attr_e( 'Search Media' ); ?>">
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -940,7 +940,7 @@ function wp_get_plugin_action_button( $name, $data, $compatible_php, $compatible
|
||||
if ( $status['url'] ) {
|
||||
if ( $compatible_php && $compatible_wp && $all_plugin_dependencies_installed && ! empty( $data->download_link ) ) {
|
||||
$button = sprintf(
|
||||
'<a class="install-now button" data-slug="%s" href="%s" aria-label="%s" data-name="%s" role="button">%s</a>',
|
||||
'<a class="install-now button button-compact" data-slug="%s" href="%s" aria-label="%s" data-name="%s" role="button">%s</a>',
|
||||
esc_attr( $data->slug ),
|
||||
esc_url( $status['url'] ),
|
||||
/* translators: %s: Plugin name and version. */
|
||||
@@ -950,7 +950,7 @@ function wp_get_plugin_action_button( $name, $data, $compatible_php, $compatible
|
||||
);
|
||||
} else {
|
||||
$button = sprintf(
|
||||
'<button type="button" class="install-now button button-disabled" disabled="disabled">%s</button>',
|
||||
'<button type="button" class="install-now button button-compact button-disabled" disabled="disabled">%s</button>',
|
||||
_x( 'Install Now', 'plugin' )
|
||||
);
|
||||
}
|
||||
@@ -961,7 +961,7 @@ function wp_get_plugin_action_button( $name, $data, $compatible_php, $compatible
|
||||
if ( $status['url'] ) {
|
||||
if ( $compatible_php && $compatible_wp ) {
|
||||
$button = sprintf(
|
||||
'<a class="update-now button aria-button-if-js" data-plugin="%s" data-slug="%s" href="%s" aria-label="%s" data-name="%s" role="button">%s</a>',
|
||||
'<a class="update-now button button-compact aria-button-if-js" data-plugin="%s" data-slug="%s" href="%s" aria-label="%s" data-name="%s" role="button">%s</a>',
|
||||
esc_attr( $status['file'] ),
|
||||
esc_attr( $data->slug ),
|
||||
esc_url( $status['url'] ),
|
||||
@@ -972,7 +972,7 @@ function wp_get_plugin_action_button( $name, $data, $compatible_php, $compatible
|
||||
);
|
||||
} else {
|
||||
$button = sprintf(
|
||||
'<button type="button" class="button button-disabled" disabled="disabled">%s</button>',
|
||||
'<button type="button" class="button button-compact button-disabled" disabled="disabled">%s</button>',
|
||||
_x( 'Update Now', 'plugin' )
|
||||
);
|
||||
}
|
||||
@@ -983,7 +983,7 @@ function wp_get_plugin_action_button( $name, $data, $compatible_php, $compatible
|
||||
case 'newer_installed':
|
||||
if ( is_plugin_active( $status['file'] ) ) {
|
||||
$button = sprintf(
|
||||
'<button type="button" class="button button-disabled" disabled="disabled">%s</button>',
|
||||
'<button type="button" class="button button-compact button-disabled" disabled="disabled">%s</button>',
|
||||
_x( 'Active', 'plugin' )
|
||||
);
|
||||
} elseif ( current_user_can( 'activate_plugin', $status['file'] ) ) {
|
||||
@@ -1008,7 +1008,7 @@ function wp_get_plugin_action_button( $name, $data, $compatible_php, $compatible
|
||||
}
|
||||
|
||||
$button = sprintf(
|
||||
'<a href="%1$s" data-name="%2$s" data-slug="%3$s" data-plugin="%4$s" class="button button-primary activate-now" aria-label="%5$s" role="button">%6$s</a>',
|
||||
'<a href="%1$s" data-name="%2$s" data-slug="%3$s" data-plugin="%4$s" class="button button-compact button-primary activate-now" aria-label="%5$s" role="button">%6$s</a>',
|
||||
esc_url( $activate_url ),
|
||||
esc_attr( $name ),
|
||||
esc_attr( $data->slug ),
|
||||
@@ -1018,13 +1018,13 @@ function wp_get_plugin_action_button( $name, $data, $compatible_php, $compatible
|
||||
);
|
||||
} else {
|
||||
$button = sprintf(
|
||||
'<button type="button" class="button button-disabled" disabled="disabled">%s</button>',
|
||||
'<button type="button" class="button button-compact button-disabled" disabled="disabled">%s</button>',
|
||||
is_network_admin() ? _x( 'Network Activate', 'plugin' ) : _x( 'Activate', 'plugin' )
|
||||
);
|
||||
}
|
||||
} else {
|
||||
$button = sprintf(
|
||||
'<button type="button" class="button button-disabled" disabled="disabled">%s</button>',
|
||||
'<button type="button" class="button button-compact button-disabled" disabled="disabled">%s</button>',
|
||||
_x( 'Installed', 'plugin' )
|
||||
);
|
||||
}
|
||||
|
||||
+17
-17
@@ -408,21 +408,21 @@ if ( $tab ) {
|
||||
?>
|
||||
<# if ( data.activate_url ) { #>
|
||||
<# if ( ! data.active ) { #>
|
||||
<a class="button button-primary activate" href="{{ data.activate_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a>
|
||||
<a class="button button-primary button-compact activate" href="{{ data.activate_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a>
|
||||
<# } else { #>
|
||||
<button class="button button-primary disabled"><?php _ex( 'Activated', 'theme' ); ?></button>
|
||||
<button class="button button-primary button-compact disabled"><?php _ex( 'Activated', 'theme' ); ?></button>
|
||||
<# } #>
|
||||
<# } #>
|
||||
<# if ( data.customize_url ) { #>
|
||||
<# if ( ! data.active ) { #>
|
||||
<# if ( ! data.block_theme ) { #>
|
||||
<a class="button load-customize" href="{{ data.customize_url }}"><?php _e( 'Live Preview' ); ?></a>
|
||||
<a class="button button-compact load-customize" href="{{ data.customize_url }}"><?php _e( 'Live Preview' ); ?></a>
|
||||
<# } #>
|
||||
<# } else { #>
|
||||
<a class="button load-customize" href="{{ data.customize_url }}"><?php _e( 'Customize' ); ?></a>
|
||||
<a class="button button-compact load-customize" href="{{ data.customize_url }}"><?php _e( 'Customize' ); ?></a>
|
||||
<# } #>
|
||||
<# } else { #>
|
||||
<button class="button preview install-theme-preview"><?php echo esc_html_x( 'Preview', 'verb' ); ?></button>
|
||||
<button class="button button-compact preview install-theme-preview"><?php echo esc_html_x( 'Preview', 'verb' ); ?></button>
|
||||
<# } #>
|
||||
<# } else { #>
|
||||
<?php
|
||||
@@ -430,12 +430,12 @@ if ( $tab ) {
|
||||
$aria_label = sprintf( _x( 'Cannot Activate %s', 'theme' ), '{{ data.name }}' );
|
||||
?>
|
||||
<# if ( data.activate_url ) { #>
|
||||
<a class="button button-primary disabled" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _ex( 'Cannot Activate', 'theme' ); ?></a>
|
||||
<a class="button button-primary button-compact disabled" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _ex( 'Cannot Activate', 'theme' ); ?></a>
|
||||
<# } #>
|
||||
<# if ( data.customize_url ) { #>
|
||||
<a class="button disabled"><?php _e( 'Live Preview' ); ?></a>
|
||||
<a class="button button-compact disabled"><?php _e( 'Live Preview' ); ?></a>
|
||||
<# } else { #>
|
||||
<button class="button disabled"><?php echo esc_html_x( 'Preview', 'verb' ); ?></button>
|
||||
<button class="button button-compact disabled"><?php echo esc_html_x( 'Preview', 'verb' ); ?></button>
|
||||
<# } #>
|
||||
<# } #>
|
||||
<# } else { #>
|
||||
@@ -444,15 +444,15 @@ if ( $tab ) {
|
||||
/* translators: %s: Theme name. */
|
||||
$aria_label = sprintf( _x( 'Install %s', 'theme' ), '{{ data.name }}' );
|
||||
?>
|
||||
<a class="button button-primary theme-install" data-name="{{ data.name }}" data-slug="{{ data.id }}" href="{{ data.install_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Install' ); ?></a>
|
||||
<button class="button preview install-theme-preview"><?php echo esc_html_x( 'Preview', 'verb' ); ?></button>
|
||||
<a class="button button-primary button-compact theme-install" data-name="{{ data.name }}" data-slug="{{ data.id }}" href="{{ data.install_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Install' ); ?></a>
|
||||
<button class="button button-compact preview install-theme-preview"><?php echo esc_html_x( 'Preview', 'verb' ); ?></button>
|
||||
<# } else { #>
|
||||
<?php
|
||||
/* translators: %s: Theme name. */
|
||||
$aria_label = sprintf( _x( 'Cannot Install %s', 'theme' ), '{{ data.name }}' );
|
||||
?>
|
||||
<a class="button button-primary disabled" data-name="{{ data.name }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _ex( 'Cannot Install', 'theme' ); ?></a>
|
||||
<button class="button disabled"><?php echo esc_html_x( 'Preview', 'verb' ); ?></button>
|
||||
<a class="button button-primary button-compact disabled" data-name="{{ data.name }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _ex( 'Cannot Install', 'theme' ); ?></a>
|
||||
<button class="button button-compact disabled"><?php echo esc_html_x( 'Preview', 'verb' ); ?></button>
|
||||
<# } #>
|
||||
<# } #>
|
||||
</div>
|
||||
@@ -487,18 +487,18 @@ if ( $tab ) {
|
||||
$aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' );
|
||||
?>
|
||||
<# if ( ! data.active ) { #>
|
||||
<a class="button button-primary button-compact activate" href="{{ data.activate_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a>
|
||||
<a class="button button-primary activate" href="{{ data.activate_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a>
|
||||
<# } else { #>
|
||||
<button class="button button-primary button-compact disabled"><?php _ex( 'Activated', 'theme' ); ?></button>
|
||||
<button class="button button-primary disabled"><?php _ex( 'Activated', 'theme' ); ?></button>
|
||||
<# } #>
|
||||
<# } else { #>
|
||||
<a class="button button-primary button-compact disabled" ><?php _ex( 'Cannot Activate', 'theme' ); ?></a>
|
||||
<a class="button button-primary disabled" ><?php _ex( 'Cannot Activate', 'theme' ); ?></a>
|
||||
<# } #>
|
||||
<# } else { #>
|
||||
<# if ( data.compatible_wp && data.compatible_php ) { #>
|
||||
<a href="{{ data.install_url }}" class="button button-primary button-compact theme-install" data-name="{{ data.name }}" data-slug="{{ data.id }}"><?php _e( 'Install' ); ?></a>
|
||||
<a href="{{ data.install_url }}" class="button button-primary theme-install" data-name="{{ data.name }}" data-slug="{{ data.id }}"><?php _e( 'Install' ); ?></a>
|
||||
<# } else { #>
|
||||
<a class="button button-primary button-compact disabled" ><?php _ex( 'Cannot Install', 'theme' ); ?></a>
|
||||
<a class="button button-primary disabled" ><?php _ex( 'Cannot Install', 'theme' ); ?></a>
|
||||
<# } #>
|
||||
<# } #>
|
||||
</div>
|
||||
|
||||
+22
-22
@@ -381,18 +381,18 @@ if ( is_array( $submenu ) && isset( $submenu['themes.php'] ) ) {
|
||||
$menu_hook = get_plugin_page_hook( $submenu[ $item[2] ][0][2], $item[2] );
|
||||
|
||||
if ( file_exists( WP_PLUGIN_DIR . "/{$submenu[$item[2]][0][2]}" ) || ! empty( $menu_hook ) ) {
|
||||
$current_theme_actions[] = "<a class='button$class' href='admin.php?page={$submenu[$item[2]][0][2]}'>{$item[0]}</a>";
|
||||
$current_theme_actions[] = "<a class='button button-compact$class' href='admin.php?page={$submenu[$item[2]][0][2]}'>{$item[0]}</a>";
|
||||
} else {
|
||||
$current_theme_actions[] = "<a class='button$class' href='{$submenu[$item[2]][0][2]}'>{$item[0]}</a>";
|
||||
$current_theme_actions[] = "<a class='button button-compact$class' href='{$submenu[$item[2]][0][2]}'>{$item[0]}</a>";
|
||||
}
|
||||
} elseif ( ! empty( $item[2] ) && current_user_can( $item[1] ) ) {
|
||||
$menu_file = $item[2];
|
||||
|
||||
if ( current_user_can( 'customize' ) ) {
|
||||
if ( 'custom-header' === $menu_file ) {
|
||||
$current_theme_actions[] = "<a class='button hide-if-no-customize$class' href='customize.php?autofocus[control]=header_image'>{$item[0]}</a>";
|
||||
$current_theme_actions[] = "<a class='button button-compact hide-if-no-customize$class' href='customize.php?autofocus[control]=header_image'>{$item[0]}</a>";
|
||||
} elseif ( 'custom-background' === $menu_file ) {
|
||||
$current_theme_actions[] = "<a class='button hide-if-no-customize$class' href='customize.php?autofocus[control]=background_image'>{$item[0]}</a>";
|
||||
$current_theme_actions[] = "<a class='button button-compact hide-if-no-customize$class' href='customize.php?autofocus[control]=background_image'>{$item[0]}</a>";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -402,9 +402,9 @@ if ( is_array( $submenu ) && isset( $submenu['themes.php'] ) ) {
|
||||
}
|
||||
|
||||
if ( file_exists( ABSPATH . "wp-admin/$menu_file" ) ) {
|
||||
$current_theme_actions[] = "<a class='button$class' href='{$item[2]}'>{$item[0]}</a>";
|
||||
$current_theme_actions[] = "<a class='button button-compact$class' href='{$item[2]}'>{$item[0]}</a>";
|
||||
} else {
|
||||
$current_theme_actions[] = "<a class='button$class' href='themes.php?page={$item[2]}'>{$item[0]}</a>";
|
||||
$current_theme_actions[] = "<a class='button button-compact$class' href='themes.php?page={$item[2]}'>{$item[0]}</a>";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -609,7 +609,7 @@ foreach ( $themes as $theme ) :
|
||||
/* translators: %s: Theme name. */
|
||||
$customize_aria_label = sprintf( _x( 'Customize %s', 'theme' ), $theme['name'] );
|
||||
?>
|
||||
<a class="button button-primary customize load-customize hide-if-no-customize"
|
||||
<a class="button button-compact button-primary customize load-customize hide-if-no-customize"
|
||||
href="<?php echo esc_url( $theme['actions']['customize'] ); ?>"
|
||||
aria-label="<?php echo esc_attr( $customize_aria_label ); ?>"
|
||||
><?php _e( 'Customize' ); ?></a>
|
||||
@@ -619,7 +619,7 @@ foreach ( $themes as $theme ) :
|
||||
/* translators: %s: Theme name. */
|
||||
$aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' );
|
||||
?>
|
||||
<a class="button activate"
|
||||
<a class="button button-compact activate"
|
||||
href="<?php echo esc_url( $theme['actions']['activate'] ); ?>"
|
||||
aria-label="<?php echo esc_attr( $aria_label ); ?>"
|
||||
><?php _e( 'Activate' ); ?></a>
|
||||
@@ -630,7 +630,7 @@ foreach ( $themes as $theme ) :
|
||||
/* translators: %s: Theme name. */
|
||||
$live_preview_aria_label = sprintf( _x( 'Live Preview %s', 'theme' ), '{{ data.name }}' );
|
||||
?>
|
||||
<a class="button button-primary load-customize hide-if-no-customize"
|
||||
<a class="button button-compact button-primary load-customize hide-if-no-customize"
|
||||
href="<?php echo esc_url( $theme['actions']['customize'] ); ?>"
|
||||
aria-label="<?php echo esc_attr( $live_preview_aria_label ); ?>"
|
||||
><?php _e( 'Live Preview' ); ?></a>
|
||||
@@ -640,7 +640,7 @@ foreach ( $themes as $theme ) :
|
||||
/* translators: %s: Theme name. */
|
||||
$aria_label = sprintf( _x( 'Cannot Activate %s', 'theme' ), '{{ data.name }}' );
|
||||
?>
|
||||
<a class="button disabled"
|
||||
<a class="button button-compact disabled"
|
||||
aria-label="<?php echo esc_attr( $aria_label ); ?>"
|
||||
><?php _ex( 'Cannot Activate', 'theme' ); ?></a>
|
||||
|
||||
@@ -649,7 +649,7 @@ foreach ( $themes as $theme ) :
|
||||
/* translators: %s: Theme name. */
|
||||
$live_preview_aria_label = sprintf( _x( 'Live Preview %s', 'theme' ), '{{ data.name }}' );
|
||||
?>
|
||||
<a class="button button-primary hide-if-no-customize disabled"
|
||||
<a class="button button-compact button-primary hide-if-no-customize disabled"
|
||||
aria-label="<?php echo esc_attr( $live_preview_aria_label ); ?>"
|
||||
><?php _e( 'Live Preview' ); ?></a>
|
||||
<?php } ?>
|
||||
@@ -1001,7 +1001,7 @@ function wp_theme_auto_update_setting_template() {
|
||||
/* translators: %s: Theme name. */
|
||||
$customize_aria_label = sprintf( _x( 'Customize %s', 'theme' ), '{{ data.name }}' );
|
||||
?>
|
||||
<a class="button button-primary customize load-customize hide-if-no-customize"
|
||||
<a class="button button-compact button-primary customize load-customize hide-if-no-customize"
|
||||
href="{{{ data.actions.customize }}}"
|
||||
aria-label="<?php echo esc_attr( $customize_aria_label ); ?>"
|
||||
><?php _e( 'Customize' ); ?></a>
|
||||
@@ -1012,7 +1012,7 @@ function wp_theme_auto_update_setting_template() {
|
||||
/* translators: %s: Theme name. */
|
||||
$aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' );
|
||||
?>
|
||||
<a class="button activate"
|
||||
<a class="button button-compact activate"
|
||||
href="{{{ data.actions.activate }}}"
|
||||
aria-label="<?php echo esc_attr( $aria_label ); ?>"
|
||||
><?php _e( 'Activate' ); ?></a>
|
||||
@@ -1021,7 +1021,7 @@ function wp_theme_auto_update_setting_template() {
|
||||
/* translators: %s: Theme name. */
|
||||
$live_preview_aria_label = sprintf( _x( 'Live Preview %s', 'theme' ), '{{ data.name }}' );
|
||||
?>
|
||||
<a class="button button-primary load-customize hide-if-no-customize"
|
||||
<a class="button button-compact button-primary load-customize hide-if-no-customize"
|
||||
href="{{{ data.actions.customize }}}"
|
||||
aria-label="<?php echo esc_attr( $live_preview_aria_label ); ?>"
|
||||
><?php _e( 'Live Preview' ); ?></a>
|
||||
@@ -1030,7 +1030,7 @@ function wp_theme_auto_update_setting_template() {
|
||||
/* translators: %s: Theme name. */
|
||||
$aria_label = sprintf( _x( 'Cannot Activate %s', 'theme' ), '{{ data.name }}' );
|
||||
?>
|
||||
<a class="button disabled"
|
||||
<a class="button button-compact disabled"
|
||||
aria-label="<?php echo esc_attr( $aria_label ); ?>"
|
||||
><?php _ex( 'Cannot Activate', 'theme' ); ?></a>
|
||||
|
||||
@@ -1038,7 +1038,7 @@ function wp_theme_auto_update_setting_template() {
|
||||
/* translators: %s: Theme name. */
|
||||
$live_preview_aria_label = sprintf( _x( 'Live Preview %s', 'theme' ), '{{ data.name }}' );
|
||||
?>
|
||||
<a class="button button-primary hide-if-no-customize disabled"
|
||||
<a class="button button-compact button-primary hide-if-no-customize disabled"
|
||||
aria-label="<?php echo esc_attr( $live_preview_aria_label ); ?>"
|
||||
><?php _e( 'Live Preview' ); ?></a>
|
||||
<# } #>
|
||||
@@ -1251,7 +1251,7 @@ function wp_theme_auto_update_setting_template() {
|
||||
|
||||
<div class="theme-actions">
|
||||
<div class="active-theme">
|
||||
<a class="button button-primary customize load-customize hide-if-no-customize"
|
||||
<a class="button button-compact button-primary customize load-customize hide-if-no-customize"
|
||||
href="{{{ data.actions.customize }}}"
|
||||
><?php _e( 'Customize' ); ?></a>
|
||||
<?php echo implode( ' ', $current_theme_actions ); ?>
|
||||
@@ -1263,7 +1263,7 @@ function wp_theme_auto_update_setting_template() {
|
||||
/* translators: %s: Theme name. */
|
||||
$live_preview_aria_label = sprintf( _x( 'Live Preview %s', 'theme' ), '{{ data.name }}' );
|
||||
?>
|
||||
<a class="button button-primary load-customize hide-if-no-customize"
|
||||
<a class="button button-compact button-primary load-customize hide-if-no-customize"
|
||||
href="{{{ data.actions.customize }}}"
|
||||
aria-label="<?php echo esc_attr( $live_preview_aria_label ); ?>"
|
||||
><?php _e( 'Live Preview' ); ?></a>
|
||||
@@ -1273,7 +1273,7 @@ function wp_theme_auto_update_setting_template() {
|
||||
/* translators: %s: Theme name. */
|
||||
$aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' );
|
||||
?>
|
||||
<a class="button activate"
|
||||
<a class="button button-compact activate"
|
||||
href="{{{ data.actions.activate }}}"
|
||||
aria-label="<?php echo esc_attr( $aria_label ); ?>"
|
||||
><?php _e( 'Activate' ); ?></a>
|
||||
@@ -1283,7 +1283,7 @@ function wp_theme_auto_update_setting_template() {
|
||||
/* translators: %s: Theme name. */
|
||||
$live_preview_aria_label = sprintf( _x( 'Live Preview %s', 'theme' ), '{{ data.name }}' );
|
||||
?>
|
||||
<a class="button button-primary hide-if-no-customize disabled"
|
||||
<a class="button button-compact button-primary hide-if-no-customize disabled"
|
||||
aria-label="<?php echo esc_attr( $live_preview_aria_label ); ?>"
|
||||
><?php _e( 'Live Preview' ); ?></a>
|
||||
|
||||
@@ -1292,7 +1292,7 @@ function wp_theme_auto_update_setting_template() {
|
||||
/* translators: %s: Theme name. */
|
||||
$aria_label = sprintf( _x( 'Cannot Activate %s', 'theme' ), '{{ data.name }}' );
|
||||
?>
|
||||
<a class="button disabled"
|
||||
<a class="button button-compact disabled"
|
||||
aria-label="<?php echo esc_attr( $aria_label ); ?>"
|
||||
><?php _ex( 'Cannot Activate', 'theme' ); ?></a>
|
||||
<# } #>
|
||||
@@ -1304,7 +1304,7 @@ function wp_theme_auto_update_setting_template() {
|
||||
/* translators: %s: Theme name. */
|
||||
$aria_label = sprintf( _x( 'Delete %s', 'theme' ), '{{ data.name }}' );
|
||||
?>
|
||||
<a class="button delete-theme"
|
||||
<a class="button button-compact delete-theme"
|
||||
href="{{{ data.actions['delete'] }}}"
|
||||
aria-label="<?php echo esc_attr( $aria_label ); ?>"
|
||||
><?php _e( 'Delete' ); ?></a>
|
||||
|
||||
@@ -319,7 +319,7 @@ SelectModeToggle = Button.extend(/** @lends wp.media.view.SelectModeToggle.proto
|
||||
|
||||
render: function() {
|
||||
Button.prototype.render.apply( this, arguments );
|
||||
this.$el.addClass( 'select-mode-toggle-button' );
|
||||
this.$el.addClass( 'select-mode-toggle-button button-compact' );
|
||||
return this;
|
||||
},
|
||||
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '7.1-alpha-62515';
|
||||
$wp_version = '7.1-alpha-62516';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user