WordPress.org

Make WordPress Core

Ticket #20733: 20733.3.diff

File 20733.3.diff, 557 bytes (added by Japh, 18 months ago)

Refreshed patch

  • wp-includes/class-wp-customize-manager.php

     
    652652                $ap = $a->priority; 
    653653                $bp = $b->priority; 
    654654 
    655                 if ( $ap == $bp ) 
    656                         return 0; 
     655                if ( $ap == $bp ) { 
     656                        $section_keys = array_keys( $this->sections ); 
     657                        return array_search( $a->id, $section_keys ) < array_search( $b->id, $section_keys ); 
     658                } 
    657659                return ( $ap > $bp ) ? 1 : -1; 
    658660        } 
    659661