WordPress build repository browser

Changeset 62618


Ignore:
Timestamp:
09/02/2026 03:33:53 PM (7 weeks ago)
Author:
oandregal
Message:

View config: add descriptions for table layout styles.

Props oandregal, ntsekouras, dugyen.
Part of #65981.

Built from ​https://develop.svn.wordpress.org/trunk@63436

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/rest-api/endpoints/class-wp-rest-view-config-controller.php

    r62214 r62618  
    509509                        'properties' => array(
    510510                                'width'    => array(
    511                                         'type' => array( 'string', 'number' ),
     511                                        'description' => __( 'The width of the column.' ),
     512                                        'type'        => array( 'string', 'number' ),
    512513                                ),
    513514                                'maxWidth' => array(
    514                                         'type' => array( 'string', 'number' ),
     515                                        'description' => __( 'The maximum width of the column.' ),
     516                                        'type'        => array( 'string', 'number' ),
    515517                                ),
    516518                                'minWidth' => array(
    517                                         'type' => array( 'string', 'number' ),
     519                                        'description' => __( 'The minimum width of the column.' ),
     520                                        'type'        => array( 'string', 'number' ),
    518521                                ),
    519522                                'align'    => array(
    520                                         'type' => 'string',
    521                                         'enum' => array( 'start', 'center', 'end' ),
     523                                        'description' => __( 'The horizontal alignment of the column content.' ),
     524                                        'type'        => 'string',
     525                                        'enum'        => array( 'start', 'center', 'end' ),
    522526                                ),
    523527                        ),
    … …  
    537541                        'properties' => array(
    538542                                'styles'       => array(
     543                                        'description'          => __( 'Column styles keyed by field id, for the columns listed in the view fields. The primary column (title, media, and description fields) ignores these styles; in the table layout it takes the width left over by the other columns, or the last column does when there is no primary column.' ),
    539544                                        'type'                 => 'object',
    540545                                        'additionalProperties' => $this->get_column_style_schema(),
  • trunk/wp-includes/version.php

    r62617 r62618  
    1717 * @global string $wp_version
    1818 */
    19 $wp_version = '7.2-alpha-63435';
     19$wp_version = '7.2-alpha-63436';
    2020
    2121/**
Note: See TracChangeset for help on using the changeset viewer.