- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/selective-refresh.php
r42343 r43571 144 144 $user->remove_cap( 'top_secret_clearance' ); 145 145 $this->wp_customize->add_setting( 146 'top_secret_message', array( 146 'top_secret_message', 147 array( 147 148 'capability' => 'top_secret_clearance', // The administrator role lacks this. 148 149 ) 149 150 ); 150 151 $this->selective_refresh->add_partial( 151 'blogname', array( 152 'blogname', 153 array( 152 154 'selector' => '#site-title', 153 155 ) 154 156 ); 155 157 $this->selective_refresh->add_partial( 156 'top_secret_message', array( 158 'top_secret_message', 159 array( 157 160 'settings' => array( 'top_secret_message' ), 158 161 )
Note: See TracChangeset
for help on using the changeset viewer.