Make WordPress Core


Ignore:
Timestamp:
05/03/2023 11:55:50 PM (23 months ago)
Author:
johnbillion
Message:

Docs: Correct and improve inline docs relating to the style engine.

See #57840

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/style-engine/class-wp-style-engine-css-rule.php

    r54481 r55719  
    4444     *
    4545     * @param string                                    $selector     The CSS selector.
    46      * @param string[]|WP_Style_Engine_CSS_Declarations $declarations An associative array of CSS definitions, e.g., array( "$property" => "$value", "$property" => "$value" ),
     46     * @param string[]|WP_Style_Engine_CSS_Declarations $declarations An associative array of CSS definitions, e.g., `array( "$property" => "$value", "$property" => "$value" )`,
    4747     *                                                                or a WP_Style_Engine_CSS_Declarations object.
    4848     */
     
    5858     *
    5959     * @param string $selector The CSS selector.
    60      *
    6160     * @return WP_Style_Engine_CSS_Rule Returns the object to allow chaining of methods.
    6261     */
     
    7372     * @param array|WP_Style_Engine_CSS_Declarations $declarations An array of declarations (property => value pairs),
    7473     *                                                             or a WP_Style_Engine_CSS_Declarations object.
    75      *
    7674     * @return WP_Style_Engine_CSS_Rule Returns the object to allow chaining of methods.
    7775     */
     
    119117     * @since 6.1.0
    120118     *
    121      * @param bool   $should_prettify Whether to add spacing, new lines and indents.
    122      * @param number $indent_count    The number of tab indents to apply to the rule. Applies if `prettify` is `true`.
    123      *
     119     * @param bool $should_prettify Whether to add spacing, new lines and indents.
     120     * @param int  $indent_count    The number of tab indents to apply to the rule. Applies if `prettify` is `true`.
    124121     * @return string
    125122     */
Note: See TracChangeset for help on using the changeset viewer.