WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #11311, comment 17


Ignore:
Timestamp:
03/04/2014 12:45:47 PM (8 years ago)
Author:
thiagof
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11311, comment 17

    initial v1  
    1 Wouldn't be a lot easier to just encode the query too? Now with all the hacks people done to overcome the issue, may be a bit more complex situation..
     1Seems like the encode-to-store and decode-to-display is the only solution. Maybe in the querys core..!
     2
     3But how to overcome people hacks to the escapes?
     4
     5{{{
     6//get_term_by - and others
     7if (!has_escape($term))
     8    $term = html_escape($term)
     9return query($term)
     10}}}