WordPress.org

Make WordPress Core

Ticket #5231: all_action_fix_r6322.patch

File all_action_fix_r6322.patch, 437 bytes (added by tellyworth, 6 years ago)
  • wordpress/wp-includes/plugin.php

     
    298298 
    299299        // Do 'all' actions first 
    300300        if ( isset($wp_action['all']) ) { 
     301                reset( $wp_action['all'] ); 
    301302                do { 
    302303                        foreach( (array) current($wp_action['all']) as $the_ ) 
    303304                                if ( !is_null($the_['function']) )