Changeset 53284
- Timestamp:
- 04/26/2022 02:57:41 PM (2 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/inc/custom-css.php
r53236 r53284 20 20 * @param string $prefix The CSS prefix. 21 21 * @param string $suffix The CSS suffix. 22 * @param bool $display Output the styles.22 * @param bool $display Print the styles. 23 23 */ 24 24 function twentytwenty_generate_css( $selector, $style, $value, $prefix = '', $suffix = '', $display = true ) { -
trunk/src/wp-content/themes/twentytwentyone/inc/custom-css.php
r53236 r53284 18 18 * @param string $prefix The CSS prefix. 19 19 * @param string $suffix The CSS suffix. 20 * @param bool $display Output the styles.20 * @param bool $display Print the styles. 21 21 * @return string 22 22 */ -
trunk/src/wp-includes/class.wp-styles.php
r52610 r53284 325 325 * @since 3.3.0 326 326 * 327 * @param string $handle The style's registered handle.328 * @param bool $ echo Optional. Whether to echothe inline style329 * instead of just returning it. Default true.330 * @return string|bool False if no data exists, inline styles if `$ echo` is true,327 * @param string $handle The style's registered handle. 328 * @param bool $display Optional. Whether to print the inline style 329 * instead of just returning it. Default true. 330 * @return string|bool False if no data exists, inline styles if `$display` is true, 331 331 * true otherwise. 332 332 */ 333 public function print_inline_style( $handle, $ echo= true ) {333 public function print_inline_style( $handle, $display = true ) { 334 334 $output = $this->get_data( $handle, 'after' ); 335 335 … … 340 340 $output = implode( "\n", $output ); 341 341 342 if ( ! $ echo) {342 if ( ! $display ) { 343 343 return $output; 344 344 }
Note: See TracChangeset
for help on using the changeset viewer.