[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:17:44 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 | Keywords:
Focuses: |
--------------------------+-----------------------------
See my WP support forum post below
[http://wordpress.org/support/topic/cpt-slug-crashing-my-template-because-
it-has-the-word-for-in-it?replies=1]
Basically, in the code i provided if the word "for" is part of a CPT slug
and separated by hyphens (property-for-sale) then the word "for" is picked
up as php code and screws up the query. Notepad++ also picks it up as php.
I know very little about php but I think i'm on to something here.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28941>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list