浏览代码

Merge pull request #1609 from Automattic/fix/varia-issue-1461-v2

Varia: Restore featured images for Pages
Allan Cole 5 年之前
父节点
当前提交
dde2d7c8af
共有 2 个文件被更改,包括 2 次插入3 次删除
  1. 1 1
      varia/functions.php
  2. 1 2
      varia/inc/template-tags.php

+ 1 - 1
varia/functions.php

@@ -50,7 +50,7 @@ if ( ! function_exists( 'varia_setup' ) ) :
 		 *
 		 * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
 		 */
-		add_theme_support( 'post-thumbnails', array( 'post' ) );
+		add_theme_support( 'post-thumbnails' );
 		set_post_thumbnail_size( 1568, 9999 );
 
 		// This theme uses wp_nav_menu() in two locations.

+ 1 - 2
varia/inc/template-tags.php

@@ -201,8 +201,7 @@ if ( ! function_exists( 'varia_post_thumbnail' ) ) :
 	/**
 	 * Displays an optional post thumbnail.
 	 *
-	 * Wraps the post thumbnail in an anchor element on index views, or a div
-	 * element when on single views.
+	 * Wraps the post thumbnail in an anchor element on index views
 	 */
 	function varia_post_thumbnail() {
 		if ( ! varia_can_show_post_thumbnail() ) {