Changeset 27445 for trunk/src/wp-includes/media.php
- Timestamp:
- 03/06/2014 10:54:32 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r27411 r27445 2176 2176 'update' => false, 2177 2177 'delete' => false, 2178 'edit' => false 2178 2179 ), 2179 2180 'editLink' => false, … … 2182 2183 if ( current_user_can( 'edit_post', $attachment->ID ) ) { 2183 2184 $response['nonces']['update'] = wp_create_nonce( 'update-post_' . $attachment->ID ); 2185 $response['nonces']['edit'] = wp_create_nonce( 'image_editor-' . $attachment->ID ); 2184 2186 $response['editLink'] = get_edit_post_link( $attachment->ID, 'raw' ); 2185 2187 } … … 2336 2338 'update' => __( 'Update' ), 2337 2339 'replace' => __( 'Replace' ), 2340 'back' => __( 'Back' ), 2338 2341 /* translators: This is a would-be plural string used in the media manager. 2339 2342 If there is not a word you can use in your language to avoid issues with the … … 2381 2384 'imageReplaceTitle' => __( 'Replace Image' ), 2382 2385 'imageDetailsCancel' => __( 'Cancel Edit' ), 2386 'editImage' => __( 'Edit Image' ), 2383 2387 2384 2388 // Edit Image … … 2422 2426 wp_enqueue_script( 'media-editor' ); 2423 2427 wp_enqueue_style( 'media-views' ); 2428 wp_enqueue_style( 'imgareaselect' ); 2424 2429 wp_plupload_default_settings(); 2425 2430
Note: See TracChangeset
for help on using the changeset viewer.