updated theme Twenty Seventeen
version 2.4
This commit is contained in:
@ -267,7 +267,7 @@ function twentyseventeen_content_width() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter Twenty Seventeen content width of the theme.
|
||||
* Filters Twenty Seventeen content width of the theme.
|
||||
*
|
||||
* @since Twenty Seventeen 1.0
|
||||
*
|
||||
@ -311,9 +311,9 @@ function twentyseventeen_fonts_url() {
|
||||
*
|
||||
* @since Twenty Seventeen 1.0
|
||||
*
|
||||
* @param array $urls URLs to print for resource hints.
|
||||
* @param string $relation_type The relation type the URLs are printed.
|
||||
* @return array $urls URLs to print for resource hints.
|
||||
* @param array $urls URLs to print for resource hints.
|
||||
* @param string $relation_type The relation type the URLs are printed.
|
||||
* @return array URLs to print for resource hints.
|
||||
*/
|
||||
function twentyseventeen_resource_hints( $urls, $relation_type ) {
|
||||
if ( wp_style_is( 'twentyseventeen-fonts', 'queue' ) && 'preconnect' === $relation_type ) {
|
||||
@ -544,7 +544,7 @@ function twentyseventeen_content_image_sizes_attr( $sizes, $size ) {
|
||||
add_filter( 'wp_calculate_image_sizes', 'twentyseventeen_content_image_sizes_attr', 10, 2 );
|
||||
|
||||
/**
|
||||
* Filter the `sizes` value in the header image markup.
|
||||
* Filters the `sizes` value in the header image markup.
|
||||
*
|
||||
* @since Twenty Seventeen 1.0
|
||||
*
|
||||
@ -589,8 +589,8 @@ add_filter( 'wp_get_attachment_image_attributes', 'twentyseventeen_post_thumbnai
|
||||
* @since Twenty Seventeen 1.0
|
||||
*
|
||||
* @param string $template front-page.php.
|
||||
*
|
||||
* @return string The template to be used: blank if is_home() is true (defaults to index.php), else $template.
|
||||
* @return string The template to be used: blank if is_home() is true (defaults to index.php),
|
||||
* otherwise $template.
|
||||
*/
|
||||
function twentyseventeen_front_page_template( $template ) {
|
||||
return is_home() ? '' : $template;
|
||||
@ -617,7 +617,7 @@ function twentyseventeen_widget_tag_cloud_args( $args ) {
|
||||
add_filter( 'widget_tag_cloud_args', 'twentyseventeen_widget_tag_cloud_args' );
|
||||
|
||||
/**
|
||||
* Get unique ID.
|
||||
* Gets unique ID.
|
||||
*
|
||||
* This is a PHP implementation of Underscore's uniqueId method. A static variable
|
||||
* contains an integer that is incremented with each call. This number is returned
|
||||
@ -625,9 +625,8 @@ add_filter( 'widget_tag_cloud_args', 'twentyseventeen_widget_tag_cloud_args' );
|
||||
* but it is unique across the life of the PHP process.
|
||||
*
|
||||
* @since Twenty Seventeen 2.0
|
||||
* @see wp_unique_id() Themes requiring WordPress 5.0.3 and greater should use this instead.
|
||||
*
|
||||
* @staticvar int $id_counter
|
||||
* @see wp_unique_id() Themes requiring WordPress 5.0.3 and greater should use this instead.
|
||||
*
|
||||
* @param string $prefix Prefix for the returned ID.
|
||||
* @return string Unique ID.
|
||||
|
Reference in New Issue
Block a user