Make WordPress Core

Ticket #48983: 48983.patch

File 48983.patch, 792 bytes (added by vinita29, 4 years ago)
  • src/wp-admin/term.php

     
    5252        $post_type = reset( $tax->object_type );
    5353}
    5454
    55 if ( 'post' != $post_type ) {
    56         $parent_file  = ( 'attachment' == $post_type ) ? 'upload.php' : "edit.php?post_type=$post_type";
     55if ( 'post' !== $post_type ) {
     56        $parent_file  = ( 'attachment' === $post_type ) ? 'upload.php' : "edit.php?post_type=$post_type";
    5757        $submenu_file = "edit-tags.php?taxonomy=$taxonomy&post_type=$post_type";
    58 } elseif ( 'link_category' == $taxonomy ) {
     58} elseif ( 'link_category' === $taxonomy ) {
    5959        $parent_file  = 'link-manager.php';
    6060        $submenu_file = 'edit-tags.php?taxonomy=link_category';
    6161} else {