Ticket #58457: 58457.patch
File 58457.patch, 818 bytes (added by , 16 months ago) |
---|
-
src/wp-includes/class-wp-theme-json.php
791 791 protected static function append_to_selector( $selector, $to_append, $position = 'right' ) { 792 792 $new_selectors = array(); 793 793 $selectors = explode( ',', $selector ); 794 foreach ( $selectors as $sel ) { 795 $new_selectors[] = 'right' === $position ? $sel . $to_append : $to_append . $sel; 794 if ( 'right' === $position ) { 795 foreach ( $selectors as $sel ) { 796 $new_selectors[] = $sel . $to_append; 797 } 798 } else { 799 foreach ( $selectors as $sel ) { 800 $new_selectors[] = $to_append . $sel; 801 } 796 802 } 797 803 return implode( ',', $new_selectors ); 798 804 }