Archived
WP 4.0++
This commit is contained in:
1 parent
ff5eca21d2
commit
03777ef2b0
578 files changed
+36396
-19889
No files matched your search
@@ -12,6 +12,12 @@ require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
if ( ! $typenow )
|
||||
wp_die( __( 'Invalid post type' ) );
|
||||
|
||||
if ( 'attachment' === $typenow ) {
|
||||
if ( wp_redirect( admin_url( 'upload.php' ) ) ) {
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
$post_type = $typenow;
|
||||
$post_type_object = get_post_type_object( $post_type );
|
||||
|
||||
|
||||
Reference in new issue
Block a user