Ticket #42365: 42365.2.diff
File 42365.2.diff, 3.0 KB (added by , 8 years ago) |
---|
-
src/wp-admin/css/customize-controls.css
2030 2030 display: none; 2031 2031 } 2032 2032 2033 .themes-section-installed_themes .theme .notice-success {2033 .themes-section-installed_themes .theme .notice-success:not(.updated-message) { 2034 2034 display: none; /* Hide "installed" notice on installed themes tab. */ 2035 2035 } 2036 2036 -
src/wp-admin/js/updates.js
937 937 } else if ( 'customize' === pagenow ) { 938 938 939 939 // Update the theme details UI. 940 $notice = $( ' #update-theme' ).closest( '.notice' ).removeClass( 'notice-large' );940 $notice = $( '[data-slug="' + args.slug + '"].notice' ).removeClass( 'notice-large' ); 941 941 942 942 $notice.find( 'h3' ).remove(); 943 943 … … 988 988 $notice, newText; 989 989 990 990 if ( 'customize' === pagenow ) { 991 $theme = wp.customize.control( 'installed_theme_' + response.slug ).container; 992 } 991 $theme = $( '.updating-message' ).siblings( '.theme-name' ); 992 // Update the version number in the row. 993 newText = $theme.html().replace( response.oldVersion, response.newVersion ); 994 $theme.html( newText ); 993 995 994 if ( 'themes-network' === pagenow ) { 996 $notice = $( '.theme-info .notice' ).add( wp.customize.control( 'installed_theme_' + response.slug ).container.find( '.theme' ).find( '.update-message' ) ); 997 } else if ( 'themes-network' === pagenow ) { 995 998 $notice = $theme.find( '.update-message' ); 996 999 997 1000 // Update the version number in the row. … … 1016 1019 $document.trigger( 'wp-theme-update-success', response ); 1017 1020 1018 1021 // Show updated message after modal re-rendered. 1019 if ( isModalOpen ) {1022 if ( isModalOpen && 'customize' !== pagenow ) { 1020 1023 $( '.theme-info .theme-author' ).after( wp.updates.adminNotice( updatedMessage ) ); 1021 1024 } 1022 1025 }; … … 1046 1049 } 1047 1050 1048 1051 if ( 'customize' === pagenow ) { 1049 $theme = wp.customize.control( 'installed_theme_' + response.slug ).container ;1052 $theme = wp.customize.control( 'installed_theme_' + response.slug ).container.find( '.theme' ); 1050 1053 } 1051 1054 1052 1055 if ( 'themes-network' === pagenow ) { -
src/wp-includes/customize/class-wp-customize-themes-section.php
69 69 * @since 4.9.0 70 70 */ 71 71 protected function render_template() { 72 wp_localize_script( 'updates', '_wpUpdatesItemCounts', array( 73 'totals' => wp_get_update_data(), 74 ) ); 72 75 ?> 73 76 <li id="accordion-section-{{ data.id }}" class="theme-section"> 74 77 <button type="button" class="customize-themes-section-title themes-section-{{ data.id }}">{{ data.title }}</button>