Changeset 12328 for trunk/wp-admin/includes/post.php
- Timestamp:
- 12/07/2009 04:31:44 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r12324 r12328 1069 1069 */ 1070 1070 function _wp_post_thumbnail_html( $thumbnail_id = NULL ) { 1071 global $post;1072 if ( !current_theme_supports( 'post-thumbnails' ) ) {1073 if ( 'post' == $post->post_type ) {1074 $type = __( 'post' );1075 } elseif ( 'page' == $post->post_type ) {1076 $type = __( 'page' );1077 } else {1078 $type = $post->post_type;1079 }1080 return sprintf( __( '<p>Your theme does not currently support <a href="%1$s" target="blank" rel="external">%2$s thumbnails</a>.</p><p>You can hide this module by clicking the "Screen Options" tab.</p>' ), _x( 'http://codex.wordpress.org/Post_Images', 'Within the post/page thumbnail module on the post/page edit screen' ), $type );1081 }1082 1071 $content = '<p class="hide-if-no-js"><a href="#" id="set-post-thumbnail" onclick="jQuery(\'#add_image\').click();return false;">' . esc_html__( 'Set thumbnail' ) . '</a></p>'; 1083 1072
Note: See TracChangeset
for help on using the changeset viewer.