Changeset 46133
- Timestamp:
- 09/15/2019 11:26:16 AM (6 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-manager.php
r45932 r46133 1230 1230 if ( count( $widget_numbers ) > 0 ) { 1231 1231 $widget_numbers[] = 1; 1232 $max_widget_numbers[ $id_base ] = call_user_func_array( 'max',$widget_numbers );1232 $max_widget_numbers[ $id_base ] = max( ...$widget_numbers ); 1233 1233 } else { 1234 1234 $max_widget_numbers[ $id_base ] = 1; -
trunk/src/wp-includes/class-wp-customize-panel.php
r45932 r46133 225 225 */ 226 226 final public function check_capabilities() { 227 if ( $this->capability && ! c all_user_func_array( 'current_user_can', (array)$this->capability ) ) {227 if ( $this->capability && ! current_user_can( $this->capability ) ) { 228 228 return false; 229 229 } 230 230 231 if ( $this->theme_supports && ! c all_user_func_array( 'current_theme_supports',(array) $this->theme_supports ) ) {231 if ( $this->theme_supports && ! current_theme_supports( ... (array) $this->theme_supports ) ) { 232 232 return false; 233 233 } -
trunk/src/wp-includes/class-wp-customize-section.php
r45932 r46133 243 243 */ 244 244 final public function check_capabilities() { 245 if ( $this->capability && ! c all_user_func_array( 'current_user_can', (array)$this->capability ) ) {245 if ( $this->capability && ! current_user_can( $this->capability ) ) { 246 246 return false; 247 247 } 248 248 249 if ( $this->theme_supports && ! c all_user_func_array( 'current_theme_supports',(array) $this->theme_supports ) ) {249 if ( $this->theme_supports && ! current_theme_supports( ... (array) $this->theme_supports ) ) { 250 250 return false; 251 251 } -
trunk/src/wp-includes/class-wp-customize-setting.php
r45232 r46133 816 816 */ 817 817 final public function check_capabilities() { 818 if ( $this->capability && ! c all_user_func_array( 'current_user_can', (array)$this->capability ) ) {818 if ( $this->capability && ! current_user_can( $this->capability ) ) { 819 819 return false; 820 820 } 821 821 822 if ( $this->theme_supports && ! c all_user_func_array( 'current_theme_supports',(array) $this->theme_supports ) ) {822 if ( $this->theme_supports && ! current_theme_supports( ... (array) $this->theme_supports ) ) { 823 823 return false; 824 824 } -
trunk/src/wp-includes/class-wp-customize-widgets.php
r45932 r46133 1051 1051 $args[0]['after_widget_content'] = '</div><!-- .widget-content -->'; 1052 1052 ob_start(); 1053 call_user_func_array( 'wp_widget_control',$args );1053 wp_widget_control( ...$args ); 1054 1054 $control_tpl = ob_get_clean(); 1055 1055 return $control_tpl;
Note: See TracChangeset
for help on using the changeset viewer.