This commit is contained in:
nikolark committed 2014-09-08 22:18:43 +02:00
1 parent ff5eca21d2
commit 03777ef2b0
578 files changed
+36396 -19889

No files matched your search

+6
View File
@@ -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 );