Add CLAUDE.md documentation and sync WordPress core files
- Add comprehensive CLAUDE.md documentation file with project architecture, development setup, database operations, WordPress CLI usage, file sync procedures, and Mercurial commands
- Update WordPress core files from wordpress/ to wp/ directory
- Sync latest WordPress admin interface, includes, and core functionality
- Update plugins: portfolio plugin with latest BWS framework and fancybox integration
- Maintain custom configuration and theme files
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
<?php
/**
* Media management action handler.
*
* This file is deprecated, use 'wp-admin/upload.php' instead.
*
* @deprecated 6.3.0
* @package WordPress
* @subpackage Administration
*/
/** Load WordPress Administration Bootstrap. */
require_once __DIR__ . '/admin.php';
$parent_file = 'upload.php';
$submenu_file = 'upload.php';
$action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : '';
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;
}