[wp-trac] [WordPress Trac] #47858: Incorrect redirect after deleting a term from a taxonomy of a custom post type

WordPress Trac noreply at wordpress.org
Sat Aug 10 06:58:07 UTC 2019


#47858: Incorrect redirect after deleting a term from a taxonomy of a custom post
type
--------------------------+-----------------------------
 Reporter:  johnbillion   |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  5.3
Component:  Taxonomy      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  administration
--------------------------+-----------------------------

Comment (by donmhico):

 @mukesh27 IMHO
 {{{#!php
 if ( 'post' !== get_current_screen()->post_type )
 }}}
 is better than
 {{{#!php
 if ( ! empty( $typenow ) )
 }}}
 because the former is easier to understand.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47858#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list