Make WordPress Core

Changeset 25453


Ignore:
Timestamp:
09/16/2013 05:51:58 PM (11 years ago)
Author:
nacin
Message:

Let the wp_redirect to media-new.php from post-new.php?post_type=attachment be canceled using the wp_redirect filter.

props DrewAPicture.
fixes #25216.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/post-new.php

    r24543 r25453  
    2323    $submenu_file = 'post-new.php';
    2424} elseif ( 'attachment' == $post_type ) {
    25     wp_redirect( admin_url( 'media-new.php' ) );
    26     exit;
     25    if ( wp_redirect( admin_url( 'media-new.php' ) ) )
     26        exit;
    2727} else {
    2828    $submenu_file = "post-new.php?post_type=$post_type";
Note: See TracChangeset for help on using the changeset viewer.