[wp-trac] [WordPress Trac] #28941: CPT slug crashes a query because it has the word 'for' in it?

WordPress Trac noreply at wordpress.org
Fri Jul 18 04:24:00 UTC 2014


#28941: CPT slug crashes a query because it has the word 'for' in it?
--------------------------+------------------------------
 Reporter:  perthmetro    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.9.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by perthmetro):

 it is fixed if the slug is bracketed by a '

 e.g.
 'post_type' => property-something-sale, // works
 'post_type' => property-for-sale, // crashes
 'post_type' => 'property-for-sale', // works

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


More information about the wp-trac mailing list