Changeset 22628 for trunk/wp-admin/includes/media.php
- Timestamp:
- 11/17/2012 06:42:14 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r22568 r22628 1378 1378 */ 1379 1379 function media_upload_header() { 1380 echo '<script type="text/javascript">post_id = ' . intval( $_REQUEST['post_id'] ) . ";</script>\n"; 1380 $post_id = isset( $_REQUEST['post_id'] ) ? intval( $_REQUEST['post_id'] ) : 0; 1381 echo '<script type="text/javascript">post_id = ' . $post_id . ";</script>\n"; 1381 1382 if ( empty( $_GET['chromeless'] ) ) { 1382 1383 echo '<div id="media-upload-header">'; … … 1597 1598 media_upload_header(); 1598 1599 1599 $post_id = i ntval($_REQUEST['post_id']);1600 $post_id = isset( $_REQUEST['post_id'] ) ? intval( $_REQUEST['post_id'] ) : 0; 1600 1601 1601 1602 $form_action_url = admin_url("media-upload.php?type=$type&tab=type&post_id=$post_id"); … … 1872 1873 media_upload_header(); 1873 1874 1874 $post_id = i ntval($_REQUEST['post_id']);1875 $post_id = isset( $_REQUEST['post_id'] ) ? intval( $_REQUEST['post_id'] ) : 0; 1875 1876 1876 1877 $form_action_url = admin_url("media-upload.php?type=$type&tab=library&post_id=$post_id");
Note: See TracChangeset
for help on using the changeset viewer.