2008-03-12 01:50:07 -04:00
|
|
|
<?php
|
2008-08-14 02:30:38 -04:00
|
|
|
/**
|
|
|
|
* Media management action handler.
|
|
|
|
*
|
2023-04-11 18:26:18 -04:00
|
|
|
* This file is deprecated, use 'wp-admin/upload.php' instead.
|
|
|
|
*
|
|
|
|
* @deprecated 6.3.0
|
2008-08-14 02:30:38 -04:00
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Administration
|
|
|
|
*/
|
|
|
|
|
2023-06-19 19:20:21 -04:00
|
|
|
/** Load WordPress Administration Bootstrap. */
|
|
|
|
require_once __DIR__ . '/admin.php';
|
|
|
|
|
|
|
|
$parent_file = 'upload.php';
|
|
|
|
$submenu_file = 'upload.php';
|
|
|
|
|
2024-05-01 14:01:12 -04:00
|
|
|
$action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : '';
|
2023-06-19 19:20:21 -04:00
|
|
|
|
|
|
|
switch ( $action ) {
|
|
|
|
case 'editattachment':
|
|
|
|
case 'edit':
|
|
|
|
if ( empty( $_GET['attachment_id'] ) ) {
|
|
|
|
wp_redirect( admin_url( 'upload.php?error=deprecated' ) );
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
$att_id = (int) $_GET['attachment_id'];
|
|
|
|
|
|
|
|
wp_redirect( admin_url( "upload.php?item={$att_id}&error=deprecated" ) );
|
|
|
|
exit;
|
|
|
|
|
|
|
|
default:
|
|
|
|
wp_redirect( admin_url( 'upload.php?error=deprecated' ) );
|
|
|
|
exit;
|
|
|
|
}
|