Changeset 22735
- Timestamp:
- 11/20/2012 11:22:03 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r22725 r22735 15 15 if ( wp_is_mobile() ) 16 16 wp_enqueue_script( 'jquery-touch-punch' ); 17 18 if ( post_type_supports($post_type, 'editor') || post_type_supports($post_type, 'thumbnail') ) {19 add_thickbox();20 wp_enqueue_media();21 }22 17 23 18 /** … … 29 24 $user_ID = isset($user_ID) ? (int) $user_ID : 0; 30 25 $action = isset($action) ? $action : ''; 26 27 if ( post_type_supports($post_type, 'editor') || post_type_supports($post_type, 'thumbnail') ) { 28 add_thickbox(); 29 wp_enqueue_media( array( 'post' => $post_id ) ); 30 } 31 31 32 32 $messages = array(); -
trunk/wp-includes/media.php
r22712 r22735 1335 1335 } 1336 1336 1337 $hier = $post && is_post_type_hierarchical( $post->post_type ); 1338 1337 1339 $strings = array( 1338 1340 // Generic … … 1355 1357 'mediaLibraryTitle' => __( 'Media Library' ), 1356 1358 'createNewGallery' => __( 'Create a new gallery' ), 1357 'insertIntoPost' => __( 'Insert into post' ),1359 'insertIntoPost' => $hier ? __( 'Insert into page' ) : __( 'Insert into post' ), 1358 1360 'returnToLibrary' => __( '← Return to library' ), 1359 1361 1360 1362 'allMediaItems' => __( 'All media items' ), 1361 'uploadedToThisPost' => __( 'Uploaded to this post' ),1363 'uploadedToThisPost' => $hier ? __( 'Uploaded to this page' ) : __( 'Uploaded to this post' ), 1362 1364 'images' => __( 'Images' ), 1363 1365 'audio' => __( 'Audio' ),
Note: See TracChangeset
for help on using the changeset viewer.