Changes between Initial Version and Version 1 of Ticket #29608
- Timestamp:
- 09/09/2014 09:22:57 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29608
-
Property
Milestone
changed from
Awaiting Review
to4.0.1
-
Property
Milestone
changed from
-
Ticket #29608 – Description
initial v1 9 9 10 10 '''Expected result:''' WordPress 3.9.1 11 11 {{{ 12 12 [shortcode meta_compare=">=" ] 13 }}} 13 14 will end up passing a meta_compare value of >= to get_posts(). i.e. 14 [meta_compare] = >= 15 15 {{{ 16 [meta_compare] = >= 17 }}} 16 18 '''Unexpected result:''' WordPress 4.0 17 19 18 20 the array field value passed to get_posts() becomes 19 [meta_compare] => ’>=’ 20 21 {{{ 22 [meta_compare] => ’>=’ 23 }}} 21 24 This problem is caused by wptexturize(), which converts a double quote to ” or a single quote to ’ 22 25 23 26 Pragmatic workaround: 24 25 27 {{{ 26 28 remove_filter( "the_content", "wptexturize" ); 27 29 }}} 28 30 29 30 31 Alternatively, I could introduce a specific test on the meta_compare parameter value and strip unexpected entities. 31 32 I may have to do this anyway since I've seen a situation where the visual editor has converted > to > which has caused a similar failure. 32 33 34 35