[wp-trac] [WordPress Trac] #42365: Error while theme update from customizer

WordPress Trac noreply at wordpress.org
Tue Oct 31 06:44:47 UTC 2017


#42365: Error while theme update from customizer
---------------------------------------+-----------------------
 Reporter:  Mahesh901122               |       Owner:  obenland
     Type:  defect (bug)               |      Status:  closed
 Priority:  normal                     |   Milestone:  4.9
Component:  Customize                  |     Version:  trunk
 Severity:  normal                     |  Resolution:  fixed
 Keywords:  has-screenshots has-patch  |     Focuses:  ui
---------------------------------------+-----------------------

Comment (by rinkuyadav999):

 According to code, Model should display 'Updating....' message. but class
 notice-large does not remove, h3 does not remove, wp.updates.l10n.updating
 does not display inside p.


 {{{#!php
 .
 .
 .
 .....
 } else if ( 'customize' === pagenow ) {

         // Update the theme details UI.
         $notice = $( '[data-slug="' + args.slug + '"].notice'
 ).removeClass( 'notice-large' );

         $notice.find( 'h3' ).remove();

         // Add the top-level UI, and update both.
         $notice = $notice.add( $( '#customize-control-installed_theme_' +
 args.slug ).find( '.update-message' ) );
         $notice = $notice.addClass( 'updating-message' ).find( 'p' );

 } else {
 ....
 .
 .
 .
 .
 }}}


 {{{#!php
 $notice.text( wp.updates.l10n.updating );
 }}}

 Code are mostly same for  /wp-admin/themes.php and works.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42365#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list