mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Standardize around "post image" instead of "post thumbnail"
git-svn-id: https://develop.svn.wordpress.org/trunk@12339 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
/**
|
||||
* WordPress Post Image Template Functions.
|
||||
*
|
||||
* Support for post thumbnails
|
||||
* Themes function.php must call add_theme_support( 'post-thumbnails' ) to use these.
|
||||
* Support for post images
|
||||
* Themes function.php must call add_theme_support( 'post-images' ) to use these.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Template
|
||||
|
||||
@@ -275,7 +275,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
$scripts->add( 'postbox', "/wp-admin/js/postbox$suffix.js", array('jquery-ui-sortable'), '20091012' );
|
||||
$scripts->add_data( 'postbox', 'group', 1 );
|
||||
|
||||
$scripts->add( 'post', "/wp-admin/js/post$suffix.js", array('suggest', 'wp-lists', 'postbox'), '20091202' );
|
||||
$scripts->add( 'post', "/wp-admin/js/post$suffix.js", array('suggest', 'wp-lists', 'postbox'), '20091208' );
|
||||
$scripts->add_data( 'post', 'group', 1 );
|
||||
$scripts->localize( 'post', 'postL10n', array(
|
||||
'tagsUsed' => __('Tags used on this post:'),
|
||||
|
||||
@@ -1320,6 +1320,8 @@ function add_custom_image_header($header_callback, $admin_header_callback) {
|
||||
*/
|
||||
function add_theme_support( $feature ) {
|
||||
global $_wp_theme_features;
|
||||
if ( 'post-thumbnails' == $feature ) // This was changed during 2.9 beta. I'll be nice and not break things.
|
||||
$feature = 'post-images';
|
||||
$_wp_theme_features[$feature] = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user