From e59b1cd44896b37c85506058aba112fb244e37da Mon Sep 17 00:00:00 2001 From: Philip Arthur Moore Date: Wed, 24 Apr 2013 19:57:11 +0900 Subject: [PATCH 1/2] Turn post thumbnail support off by default, as it's used nowhere in the theme by default. Also add a DocBlock into the theme which gives more information on post thumbnail support implementation. --- functions.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index 5a966c51..2b09018d 100644 --- a/functions.php +++ b/functions.php @@ -60,9 +60,12 @@ function _s_setup() { add_theme_support( 'automatic-feed-links' ); /** - * Enable support for Post Thumbnails + * Enable support for Post Thumbnails on posts and pages + * For post-only support, use add_theme_support( 'post-thumbnails', array( 'post' ) ); + * For page-only support, use add_theme_support( 'post-thumbnails', array( 'page' ) ); + * See http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails */ - add_theme_support( 'post-thumbnails' ); + //add_theme_support( 'post-thumbnails' ); /** * This theme uses wp_nav_menu() in one location. From 64f78bca0dc6444ca0c0bbb564dffd5fb8371a73 Mon Sep 17 00:00:00 2001 From: Philip Arthur Moore Date: Thu, 2 May 2013 11:02:38 +0900 Subject: [PATCH 2/2] DocBlock adjustments to post thumbnail support. See #207. --- functions.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index 2b09018d..45e1202f 100644 --- a/functions.php +++ b/functions.php @@ -61,9 +61,8 @@ function _s_setup() { /** * Enable support for Post Thumbnails on posts and pages - * For post-only support, use add_theme_support( 'post-thumbnails', array( 'post' ) ); - * For page-only support, use add_theme_support( 'post-thumbnails', array( 'page' ) ); - * See http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails + * + * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails */ //add_theme_support( 'post-thumbnails' );