Changeset 46252 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php
- Timestamp:
- 09/23/2019 05:39:36 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php
r45811 r46252 233 233 if ( in_array( 'slug', $fields, true ) ) { 234 234 $data['slug'] = $status->name; 235 } 236 237 if ( in_array( 'date_floating', $fields, true ) ) { 238 $data['date_floating'] = $status->date_floating; 235 239 } 236 240 … … 278 282 'type' => 'object', 279 283 'properties' => array( 280 'name' => array(284 'name' => array( 281 285 'description' => __( 'The title for the status.' ), 282 286 'type' => 'string', … … 284 288 'readonly' => true, 285 289 ), 286 'private' => array(290 'private' => array( 287 291 'description' => __( 'Whether posts with this status should be private.' ), 288 292 'type' => 'boolean', … … 290 294 'readonly' => true, 291 295 ), 292 'protected' => array(296 'protected' => array( 293 297 'description' => __( 'Whether posts with this status should be protected.' ), 294 298 'type' => 'boolean', … … 296 300 'readonly' => true, 297 301 ), 298 'public' => array(302 'public' => array( 299 303 'description' => __( 'Whether posts of this status should be shown in the front end of the site.' ), 300 304 'type' => 'boolean', … … 302 306 'readonly' => true, 303 307 ), 304 'queryable' => array(308 'queryable' => array( 305 309 'description' => __( 'Whether posts with this status should be publicly-queryable.' ), 306 310 'type' => 'boolean', … … 308 312 'readonly' => true, 309 313 ), 310 'show_in_list' => array(314 'show_in_list' => array( 311 315 'description' => __( 'Whether to include posts in the edit listing for their post type.' ), 312 316 'type' => 'boolean', … … 314 318 'readonly' => true, 315 319 ), 316 'slug' => array(320 'slug' => array( 317 321 'description' => __( 'An alphanumeric identifier for the status.' ), 318 322 'type' => 'string', 319 323 'context' => array( 'embed', 'view', 'edit' ), 324 'readonly' => true, 325 ), 326 'date_floating' => array( 327 'description' => __( 'Whether posts of this status may have floating published dates.' ), 328 'type' => 'boolean', 329 'context' => array( 'view', 'edit' ), 320 330 'readonly' => true, 321 331 ),
Note: See TracChangeset
for help on using the changeset viewer.