[wp-trac] [WordPress Trac] #16641: custom post has_archive in multisite

WordPress Trac noreply at wordpress.org
Sun Jul 28 19:33:53 UTC 2013


#16641: custom post has_archive in multisite
-------------------------------+------------------------------
 Reporter:  andreamk           |       Owner:
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Post Types         |     Version:  3.1
 Severity:  minor              |  Resolution:  wontfix
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------
Changes (by ericmann):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 Replying to [comment:4 andreamk]:
 > to prevent this error I must check if my custom post type isn't already
 in query var.

 Correct.  Otherwise you're just blindly adding to an array.  It's an easy
 mistake to make, but something you should really be insulating yourself
 from in your code.

 > is the right thing to do but with all the plugins that there are
 possibilities of conflict are high.
 > I think that preventing this type of error strengthens wordpress

 WordPress can't protect against every kind of mistake plugin developers
 can make.  Yes, there is a possibility of conflicting post types and
 conflicting query variables, which is why it's best you protect your own
 code from conflicts.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/16641#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list