Changeset 55173 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php
- Timestamp:
- 02/01/2023 03:00:19 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php
r55168 r55173 166 166 'name' => 'name', 167 167 'title' => 'title', 168 'content' => 'content', 168 169 'description' => 'description', 169 170 'viewportWidth' => 'viewport_width', 171 'inserter' => 'inserter', 172 'categories' => 'categories', 173 'keywords' => 'keywords', 170 174 'blockTypes' => 'block_types', 171 175 'postTypes' => 'post_types', 172 'categories' => 'categories',173 'keywords' => 'keywords',174 'content' => 'content',175 'inserter' => 'inserter',176 176 'templateTypes' => 'template_types', 177 177 ); … … 214 214 'context' => array( 'view', 'edit', 'embed' ), 215 215 ), 216 'content' => array( 217 'description' => __( 'The pattern content.' ), 218 'type' => 'string', 219 'readonly' => true, 220 'context' => array( 'view', 'edit', 'embed' ), 221 ), 216 222 'description' => array( 217 223 'description' => __( 'The pattern detailed description.' ), … … 226 232 'context' => array( 'view', 'edit', 'embed' ), 227 233 ), 228 'block_types' => array(229 'description' => __( 'Block types that the pattern is intended to be used with.' ),230 'type' => 'array',231 'readonly' => true,232 'context' => array( 'view', 'edit', 'embed' ),233 ),234 'post_types' => array(235 'description' => __( 'An array of post types that the pattern is restricted to be used with.' ),236 'type' => 'array',237 'readonly' => true,238 'context' => array( 'view', 'edit', 'embed' ),239 ),240 'categories' => array(241 'description' => __( 'The pattern category slugs.' ),242 'type' => 'array',243 'readonly' => true,244 'context' => array( 'view', 'edit', 'embed' ),245 ),246 'keywords' => array(247 'description' => __( 'The pattern keywords.' ),248 'type' => 'array',249 'readonly' => true,250 'context' => array( 'view', 'edit', 'embed' ),251 ),252 'template_types' => array(253 'description' => __( 'An array of template types where the pattern fits.' ),254 'type' => 'array',255 'readonly' => true,256 'context' => array( 'view', 'edit', 'embed' ),257 ),258 'content' => array(259 'description' => __( 'The pattern content.' ),260 'type' => 'string',261 'readonly' => true,262 'context' => array( 'view', 'edit', 'embed' ),263 ),264 234 'inserter' => array( 265 235 'description' => __( 'Determines whether the pattern is visible in inserter.' ), … … 268 238 'context' => array( 'view', 'edit', 'embed' ), 269 239 ), 240 'categories' => array( 241 'description' => __( 'The pattern category slugs.' ), 242 'type' => 'array', 243 'readonly' => true, 244 'context' => array( 'view', 'edit', 'embed' ), 245 ), 246 'keywords' => array( 247 'description' => __( 'The pattern keywords.' ), 248 'type' => 'array', 249 'readonly' => true, 250 'context' => array( 'view', 'edit', 'embed' ), 251 ), 252 'block_types' => array( 253 'description' => __( 'Block types that the pattern is intended to be used with.' ), 254 'type' => 'array', 255 'readonly' => true, 256 'context' => array( 'view', 'edit', 'embed' ), 257 ), 258 'post_types' => array( 259 'description' => __( 'An array of post types that the pattern is restricted to be used with.' ), 260 'type' => 'array', 261 'readonly' => true, 262 'context' => array( 'view', 'edit', 'embed' ), 263 ), 264 'template_types' => array( 265 'description' => __( 'An array of template types where the pattern fits.' ), 266 'type' => 'array', 267 'readonly' => true, 268 'context' => array( 'view', 'edit', 'embed' ), 269 ), 270 270 ), 271 271 );
Note: See TracChangeset
for help on using the changeset viewer.