WordPress.org

Make WordPress Core

Ticket #23807: 23807.patch

File 23807.patch, 1.8 KB (added by charlestonsw, 13 months ago)

I believe this patch addresses the problem.

  • wp-admin/includes/class-wp-upgrader.php

     
    12861286                $this->feedback('skin_upgrade_end'); 
    12871287        } 
    12881288 
     1289    // Patch: make param list compatible with base class, makes PHP strict mode happier 
    12891290        function before($title = '') { 
    12901291                $this->in_loop = true; 
    12911292                printf( '<h4>' . $this->upgrader->strings['skin_before_update_header'] . ' <span class="spinner waiting-' . $this->upgrader->update_current . '"></span></h4>',  $title, $this->upgrader->update_current, $this->upgrader->update_count); 
     
    12941295                $this->flush_output(); 
    12951296        } 
    12961297 
     1298    // Patch: make param list compatible with base class, makes PHP strict mode happier 
    12971299        function after($title = '') { 
    12981300                echo '</p></div>'; 
    12991301                if ( $this->error || ! $this->result ) { 
     
    13361338                $this->upgrader->strings['skin_before_update_header'] = __('Updating Plugin %1$s (%2$d/%3$d)'); 
    13371339        } 
    13381340 
    1339         function before() { 
     1341    // Patch: make param list compatible with base class, makes PHP strict mode happier 
     1342        function before($title='') { 
    13401343                parent::before($this->plugin_info['Title']); 
    13411344        } 
    13421345 
    1343         function after() { 
     1346    // Patch: make param list compatible with base class, makes PHP strict mode happier 
     1347        function after($title='') { 
    13441348                parent::after($this->plugin_info['Title']); 
    13451349        } 
    13461350        function bulk_footer() { 
     
    13701374                $this->upgrader->strings['skin_before_update_header'] = __('Updating Theme %1$s (%2$d/%3$d)'); 
    13711375        } 
    13721376 
    1373         function before() { 
     1377        function before($title='') { 
    13741378                parent::before( $this->theme_info->display('Name') ); 
    13751379        } 
    13761380 
    1377         function after() { 
     1381        function after($title='') { 
    13781382                parent::after( $this->theme_info->display('Name') ); 
    13791383        } 
    13801384