- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-content/themes/twentyseventeen/functions.php
r44213 r44434 426 426 427 427 // Theme block stylesheet. 428 wp_enqueue_style( 'twentyseventeen-block-style', get_theme_file_uri( '/assets/css/blocks.css' ), array( 'twentyseventeen-style' ), '1. 0' );428 wp_enqueue_style( 'twentyseventeen-block-style', get_theme_file_uri( '/assets/css/blocks.css' ), array( 'twentyseventeen-style' ), '1.1' ); 429 429 430 430 // Load the dark colorscheme. … … 479 479 function twentyseventeen_block_editor_styles() { 480 480 // Block styles. 481 wp_enqueue_style( 'twentyseventeen-block-editor-style', get_theme_file_uri( '/assets/css/editor-blocks.css' ) );481 wp_enqueue_style( 'twentyseventeen-block-editor-style', get_theme_file_uri( '/assets/css/editor-blocks.css' ), array(), '1.1' ); 482 482 // Add custom fonts. 483 483 wp_enqueue_style( 'twentyseventeen-fonts', twentyseventeen_fonts_url(), array(), null ); … … 587 587 588 588 /** 589 * Get unique ID. 590 * 591 * This is a PHP implementation of Underscore's uniqueId method. A static variable 592 * contains an integer that is incremented with each call. This number is returned 593 * with the optional prefix. As such the returned value is not universally unique, 594 * but it is unique across the life of the PHP process. 595 * 596 * @since Twenty Seventeen 2.0 597 * @see wp_unique_id() Themes requiring WordPress 5.0.3 and greater should use this instead. 598 * 599 * @staticvar int $id_counter 600 * 601 * @param string $prefix Prefix for the returned ID. 602 * @return string Unique ID. 603 */ 604 function twentyseventeen_unique_id( $prefix = '' ) { 605 static $id_counter = 0; 606 if ( function_exists( 'wp_unique_id' ) ) { 607 return wp_unique_id( $prefix ); 608 } 609 return $prefix . (string) ++$id_counter; 610 } 611 612 /** 589 613 * Implement the Custom Header feature. 590 614 */
Note: See TracChangeset
for help on using the changeset viewer.