- Timestamp:
- 05/17/2023 11:56:47 AM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/style-engine/class-wp-style-engine-css-declarations.php
r55734 r55819 31 31 * 32 32 * If a `$declarations` array is passed, it will be used to populate 33 * the initial $declarationsprop of the object by calling add_declarations().33 * the initial `$declarations` prop of the object by calling add_declarations(). 34 34 * 35 35 * @since 6.1.0 36 36 * 37 * @param string[] $declarations An associative array of CSS definitions, e.g., `array( "$property" => "$value", "$property" => "$value" )`. 37 * @param string[] $declarations Optional. An associative array of CSS definitions, 38 * e.g. `array( "$property" => "$value", "$property" => "$value" )`. 39 * Default empty array. 38 40 */ 39 41 public function __construct( $declarations = array() ) { … … 103 105 * @since 6.1.0 104 106 * 105 * @param string[] $properties An array of properties.107 * @param string[] $properties Optional. An array of properties. Default empty array. 106 108 * @return WP_Style_Engine_CSS_Declarations Returns the object to allow chaining methods. 107 109 */ … … 131 133 * @param string $property The CSS property. 132 134 * @param string $value The value to be filtered. 133 * @param string $spacer The spacer between the colon and the value. Defaults to an empty string. 135 * @param string $spacer Optional. The spacer between the colon and the value. 136 * Default empty string. 134 137 * @return string The filtered declaration or an empty string. 135 138 */ … … 147 150 * @since 6.1.0 148 151 * 149 * @param bool $should_prettify Whether to add spacing, new lines and indents. 150 * @param int $indent_count The number of tab indents to apply to the rule. Applies if `prettify` is `true`. 152 * @param bool $should_prettify Optional. Whether to add spacing, new lines and indents. 153 * Default false. 154 * @param int $indent_count Optional. The number of tab indents to apply to the rule. 155 * Applies if `prettify` is `true`. Default 0. 151 156 * @return string The CSS declarations. 152 157 */ … … 165 170 } 166 171 } 172 167 173 return rtrim( $declarations_output ); 168 174 }
Note: See TracChangeset
for help on using the changeset viewer.