- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/wp-admin/upload-functions.php
r5828 r5838 108 108 $post_id = (int) $post_id; 109 109 ?> 110 <form<?php echo $enctype; ?> id="upload-file" method="post" action="<?php echo get_option('siteurl') . '/wp-admin/upload.php?style=' . attribute_escape($style ) . '&tab=upload&post_id=' . $post_id; ?>">110 <form<?php echo $enctype; ?> id="upload-file" method="post" action="<?php echo get_option('siteurl') . '/wp-admin/upload.php?style=' . attribute_escape($style . '&tab=upload&post_id=' . $post_id); ?>"> 111 111 <?php 112 112 if ( $id ) : … … 203 203 if ( !current_user_can( 'upload_files' ) ) 204 204 wp_die( __('You are not allowed to upload files.') 205 . " <a href='" . get_option('siteurl') . "/wp-admin/upload.php?style= $style&tab=browse-all&post_id=$post_id'>"205 . " <a href='" . get_option('siteurl') . "/wp-admin/upload.php?style=" . attribute_escape($style . "&tab=browse-all&post_id=$post_id") . "'>" 206 206 . __('Browse Files') . '</a>' 207 207 ); … … 213 213 if ( isset($file['error']) ) 214 214 wp_die($file['error'] . "<br /><a href='" . get_option('siteurl') 215 . "/wp-admin/upload.php?style= $style&tab=$from_tab&post_id=$post_id'>" . __('Back to Image Uploading') . '</a>'215 . "/wp-admin/upload.php?style=" . attribute_escape($style . "&tab=$from_tab&post_id=$post_id") . "'>" . __('Back to Image Uploading') . '</a>' 216 216 ); 217 217 … … 260 260 if ( !current_user_can('edit_post', (int) $ID) ) 261 261 wp_die( __('You are not allowed to delete this attachment.') 262 . " <a href='" . get_option('siteurl') . "/wp-admin/upload.php?style= $style&tab=$from_tab&post_id=$post_id'>"262 . " <a href='" . get_option('siteurl') . "/wp-admin/upload.php?style=" . attribute_escape($style . "&tab=$from_tab&post_id=$post_id") . "'>" 263 263 . __('Go back') . '</a>' 264 264 );
Note: See TracChangeset
for help on using the changeset viewer.