Changeset 43571 for trunk/tests/phpunit/tests/customize/control.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/control.php
r42343 r43571 43 43 do_action( 'customize_register', $this->wp_customize ); 44 44 $control = new WP_Customize_Control( 45 $this->wp_customize, 'blogname', array( 45 $this->wp_customize, 46 'blogname', 47 array( 46 48 'settings' => array( 'blogname' ), 47 49 ) … … 50 52 51 53 $control = new WP_Customize_Control( 52 $this->wp_customize, 'blogname', array( 54 $this->wp_customize, 55 'blogname', 56 array( 53 57 'settings' => array( 'blogname', 'non_existing' ), 54 58 ) … … 57 61 58 62 $this->wp_customize->add_setting( 59 'top_secret_message', array( 63 'top_secret_message', 64 array( 60 65 'capability' => 'top_secret_clearance', 61 66 ) 62 67 ); 63 68 $control = new WP_Customize_Control( 64 $this->wp_customize, 'blogname', array( 69 $this->wp_customize, 70 'blogname', 71 array( 65 72 'settings' => array( 'blogname', 'top_secret_clearance' ), 66 73 ) … … 69 76 70 77 $control = new WP_Customize_Control( 71 $this->wp_customize, 'no_setting', array( 78 $this->wp_customize, 79 'no_setting', 80 array( 72 81 'settings' => array(), 73 82 ) … … 76 85 77 86 $control = new WP_Customize_Control( 78 $this->wp_customize, 'no_setting', array( 87 $this->wp_customize, 88 'no_setting', 89 array( 79 90 'settings' => array(), 80 91 'capability' => 'top_secret_clearance', … … 84 95 85 96 $control = new WP_Customize_Control( 86 $this->wp_customize, 'no_setting', array( 97 $this->wp_customize, 98 'no_setting', 99 array( 87 100 'settings' => array(), 88 101 'capability' => 'edit_theme_options',
Note: See TracChangeset
for help on using the changeset viewer.