Make WordPress Core


Ignore:
Timestamp:
03/19/2012 02:45:29 PM (14 years ago)
Author:
nacin
Message:

Return to step 1 on custom-header.php if not POST data is sent. Good for if step=2 or 3 is in the URL and the page is refreshed (otherwise a nonce check fails). see #20249.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/custom-header.php

    r20206 r20211  
    895895                        wp_die(__('You do not have permission to customize headers.'));
    896896                $step = $this->step();
    897                 if ( 1 == $step )
     897                if ( 1 == $step || ! $_POST )
    898898                        $this->step_1();
    899899                elseif ( 2 == $step )
Note: See TracChangeset for help on using the changeset viewer.