WordPress.org

Make WordPress Core

Changeset 12260


Ignore:
Timestamp:
11/22/2009 10:30:27 PM (10 years ago)
Author:
westi
Message:

Allow plugins to change the redirect on post/page publishing/submitting. Fixes #10929 props johnjosephbachir and johnbillion.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/page.php

    r12247 r12260  
    6565    }
    6666
    67     wp_redirect($location);
     67    wp_redirect( apply_filters( 'redirect_page_location', $location, $page_ID ) );
    6868}
    6969
  • trunk/wp-admin/post.php

    r12182 r12260  
    7070    }
    7171
    72     wp_redirect( $location );
     72    wp_redirect( apply_filters( 'redirect_post_location', $location, $post_ID ) );
    7373}
    7474
Note: See TracChangeset for help on using the changeset viewer.