- Timestamp:
- 09/20/2021 06:48:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-widgets-controller.php
r51657 r51830 110 110 'WP test widget', 111 111 static function () { 112 $settings = get_option( 'widget_testwidget' );113 114 112 // check if anything's been sent. 115 113 if ( isset( $_POST['update_testwidget'] ) ) { 114 $settings = get_option( 'widget_testwidget', array() ); 115 116 116 $settings['id'] = $_POST['test_id']; 117 117 $settings['title'] = $_POST['test_title']; … … 130 130 static function () { 131 131 $settings = wp_parse_args( 132 get_option( 'widget_testwidget' ),132 get_option( 'widget_testwidget', array() ), 133 133 array( 134 134 'id' => 'Default id',
Note: See TracChangeset
for help on using the changeset viewer.