Make WordPress Core

Ticket #30013: 30013.diff

File 30013.diff, 425 bytes (added by Kloon, 10 years ago)

Ensure typenow is a string on edit.php

  • wp-admin/edit.php

     
    99/** WordPress Administration Bootstrap */
    1010require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    12 if ( ! $typenow )
     12if ( ! $typenow && ! is_string( $typenow ) )
    1313        wp_die( __( 'Invalid post type' ) );
    1414
    1515if ( 'attachment' === $typenow ) {