PluginProbe
Gutenberg / trunk
Gutenberg vtrunk
24.1.0 24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 All 404 releases
← All changes | lib/compat/wordpress-7.1/class-gutenberg-rest-view-config-controller-7-1.php +3 -6 23.7.2 → trunk View file →
@@ -373,15 +373,15 @@
373 373
374 374 /**
375 375 * Returns the schema properties shared by all view types (ViewBase), excluding 'type'.
376 376 *
377 + * Note that `search` and `page` are not part of the schema: they are managed
378 + * via the URL, which is their only source of truth.
379 + *
377 380 * @return array Schema properties for the base view configuration.
378 381 */
379 382 protected function get_view_base_schema() {
380 383 return array(
381 - 'search' => array(
382 - 'type' => 'string',
383 - ),
384 384 'filters' => array(
385 385 'type' => 'array',
386 386 'items' => array(
387 387 'type' => 'object',
@@ -423,11 +423,8 @@
423 423 'type' => 'string',
424 424 'enum' => array( 'asc', 'desc' ),
425 425 ),
426 426 ),
427 - ),
428 - 'page' => array(
429 - 'type' => 'integer',
430 427 ),
431 428 'perPage' => array(
432 429 'type' => 'integer',
433 430 ),