Customize: Remove “Update” link for themes on multisite installs.
In [38887], installing themes in the Customizer was disabled for multisite installs. However, an update link continues to be displayed when a theme update is available. Clicking the link causes a JavaScript error. This removes that update link because updates cannot actually be performed in the Customizer in this situation. Reviewed by desrosj and azaozz. Merges [45527] to the 5.2 branch. Props desrosj, earnjam, mukesh27, audrasjb, garrett-eclipse. Fixes #46997. Built from https://develop.svn.wordpress.org/branches/5.2@45528 git-svn-id: http://core.svn.wordpress.org/branches/5.2@45339 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
63870541c7
commit
70a8322fd3
|
@ -93,8 +93,15 @@ class WP_Customize_Theme_Control extends WP_Customize_Control {
|
|||
<div class="update-message notice inline notice-warning notice-alt" data-slug="{{ data.theme.id }}">
|
||||
<p>
|
||||
<?php
|
||||
/* translators: %s: "Update now" button */
|
||||
printf( __( 'New version available. %s' ), '<button class="button-link update-theme" type="button">' . __( 'Update now' ) . '</button>' );
|
||||
if ( is_multisite() ) {
|
||||
_e( 'New version available.' );
|
||||
} else {
|
||||
printf(
|
||||
/* translators: %s: "Update now" button */
|
||||
__( 'New version available. %s' ),
|
||||
'<button class="button-link update-theme" type="button">' . __( 'Update now' ) . '</button>'
|
||||
);
|
||||
}
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.2.2-RC1-45523';
|
||||
$wp_version = '5.2.2-RC1-45528';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue