- Timestamp:
- 04/02/2019 10:12:11 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-media-audio.php
r43571 r45100 20 20 * Constructor. 21 21 * 22 * @since 22 * @since 4.8.0 23 23 */ 24 24 public function __construct() { … … 55 55 * Get schema for properties of a widget instance (item). 56 56 * 57 * @since 57 * @since 4.8.0 58 58 * 59 59 * @see WP_REST_Controller::get_item_schema() … … 63 63 */ 64 64 public function get_instance_schema() { 65 $schema = array_merge( 66 parent::get_instance_schema(), 67 array( 68 'preload' => array( 69 'type' => 'string', 70 'enum' => array( 'none', 'auto', 'metadata' ), 71 'default' => 'none', 72 'description' => __( 'Preload' ), 73 ), 74 'loop' => array( 75 'type' => 'boolean', 76 'default' => false, 77 'description' => __( 'Loop' ), 78 ), 79 ) 65 $schema = array( 66 'preload' => array( 67 'type' => 'string', 68 'enum' => array( 'none', 'auto', 'metadata' ), 69 'default' => 'none', 70 'description' => __( 'Preload' ), 71 ), 72 'loop' => array( 73 'type' => 'boolean', 74 'default' => false, 75 'description' => __( 'Loop' ), 76 ), 80 77 ); 81 78 … … 90 87 } 91 88 92 return $schema;89 return array_merge( $schema, parent::get_instance_schema() ); 93 90 } 94 91 … … 96 93 * Render the media on the frontend. 97 94 * 98 * @since 95 * @since 4.8.0 99 96 * 100 97 * @param array $instance Widget instance props.
Note: See TracChangeset
for help on using the changeset viewer.