- Timestamp:
- 02/23/2016 06:13:30 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/customize/class-wp-customize-selective-refresh.php
r36624 r36643 173 173 174 174 foreach ( $this->partials() as $partial ) { 175 $partials[ $partial->id ] = $partial->json(); 175 if ( $partial->check_capabilities() ) { 176 $partials[ $partial->id ] = $partial->json(); 177 } 176 178 } 177 179 … … 357 359 $partial = $this->get_partial( $partial_id ); 358 360 359 if ( ! $partial ) {361 if ( ! $partial || ! $partial->check_capabilities() ) { 360 362 $contents[ $partial_id ] = null; 361 363 continue;
Note: See TracChangeset
for help on using the changeset viewer.