Changeset 3456
- Timestamp:
- 01/18/2006 07:16:31 PM (18 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r3415 r3456 219 219 220 220 <?php 221 $uploading_iframe_ID = (0 == $post_ID ? $temp_ID : $post_ID); 222 $uploading_iframe_src = "inline-uploading.php?action=view&post=$uploading_iframe_ID"; 223 $uploading_iframe_src = apply_filters('uploading_iframe_src', $uploading_iframe_src); 224 if ( false != $uploading_iframe_src ) 225 echo '<iframe id="uploading" border="0" src="' . $uploading_iframe_src . '">' . __('This feature requires iframe support.') . '</iframe>'; 221 if (current_user_can('upload_files')) { 222 $uploading_iframe_ID = (0 == $post_ID ? $temp_ID : $post_ID); 223 $uploading_iframe_src = "inline-uploading.php?action=view&post=$uploading_iframe_ID"; 224 $uploading_iframe_src = apply_filters('uploading_iframe_src', $uploading_iframe_src); 225 if ( false != $uploading_iframe_src ) 226 echo '<iframe id="uploading" border="0" src="' . $uploading_iframe_src . '">' . __('This feature requires iframe support.') . '</iframe>'; 227 } 226 228 ?> 227 229 -
trunk/wp-admin/edit-page-form.php
r3434 r3456 185 185 186 186 <?php 187 $uploading_iframe_ID = (0 == $post_ID ? $temp_ID : $post_ID); 188 $uploading_iframe_src = "inline-uploading.php?action=view&post=$uploading_iframe_ID"; 189 $uploading_iframe_src = apply_filters('uploading_iframe_src', $uploading_iframe_src); 190 if ( false != $uploading_iframe_src ) 191 echo '<iframe id="uploading" border="0" src="' . $uploading_iframe_src . '">' . __('This feature requires iframe support.') . '</iframe>'; 187 if (current_user_can('upload_files')) { 188 $uploading_iframe_ID = (0 == $post_ID ? $temp_ID : $post_ID); 189 $uploading_iframe_src = "inline-uploading.php?action=view&post=$uploading_iframe_ID"; 190 $uploading_iframe_src = apply_filters('uploading_iframe_src', $uploading_iframe_src); 191 if ( false != $uploading_iframe_src ) 192 echo '<iframe id="uploading" border="0" src="' . $uploading_iframe_src . '">' . __('This feature requires iframe support.') . '</iframe>'; 193 } 192 194 ?> 193 195 -
trunk/wp-admin/inline-uploading.php
r3439 r3456 5 5 header('Content-Type: text/html; charset=' . get_option('blog_charset')); 6 6 7 if (!current_user_can(' edit_posts'))8 die(__('You do not have permission to edit posts.'));7 if (!current_user_can('upload_files')) 8 die(__('You do not have permission to upload files.')); 9 9 10 10 $wpvarstoreset = array('action', 'post', 'all', 'last', 'link', 'sort', 'start', 'imgtitle', 'descr', 'attachment');
Note: See TracChangeset
for help on using the changeset viewer.