Changeset 4340 for trunk/wp-admin/upload-functions.php
- Timestamp:
- 10/04/2006 05:19:10 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/upload-functions.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/upload-functions.php
r4312 r4340 102 102 echo '<a href="' . get_permalink() . '">' . __('view') . '</a>'; 103 103 echo ' | '; 104 echo '<a href="' . wp_specialchars( add_query_arg( 'action', 'view' ), 1 ) . '">' . __(' options') . '</a>';104 echo '<a href="' . wp_specialchars( add_query_arg( 'action', 'view' ), 1 ) . '">' . __('links') . '</a>'; 105 105 echo ' | '; 106 106 echo '<a href="' . wp_specialchars( remove_query_arg( array('action','ID') ), 1 ) . '" title="' . __('Browse your files') . '">' . __('cancel') . '</a>'; … … 298 298 break; 299 299 default : 300 global $tab, $post_id ;300 global $tab, $post_id, $style; 301 301 add_action( 'pre_get_posts', 'wp_upload_grab_attachments' ); 302 302 if ( 'browse' == $tab && $post_id ) … … 310 310 echo "<ul id='upload-files'>\n"; 311 311 if ( have_posts() ) : while ( have_posts() ) : the_post(); 312 $href = wp_specialchars( add_query_arg( array('action' => 'view', 'ID' => get_the_ID()) ), 1 ); 312 $href = wp_specialchars( add_query_arg( array( 313 'action' => 'inline' == $style ? 'view' : 'edit', 314 'ID' => get_the_ID()) 315 ), 1 ); 313 316 314 317 echo "\t<li id='file-"; … … 332 335 333 336 function wp_upload_tab_browse_action() { 334 wp_enqueue_script('upload'); 337 global $style; 338 if ( 'inline' == $style ) 339 wp_enqueue_script('upload'); 335 340 } 336 341 … … 345 350 if ( 'inline' == @$_GET['style'] ) { 346 351 echo "<style type='text/css'>\n"; 347 echo "\t#wphead, #user_info, #adminmenu, #submenu, #footer { display: none; }\n";348 352 echo "\tbody { height: 14em; overflow: hidden; }\n"; 349 353 echo "\t#upload-content { overflow-y: auto; }\n";
Note: See TracChangeset
for help on using the changeset viewer.