WordPress.org

Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #27810, comment 4


Ignore:
Timestamp:
02/06/2015 12:36:54 AM (7 years ago)
Author:
jeffmcmahan
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27810, comment 4

    v2 v3  
    33It's an easy fix in core:
    44
    5 If query is by name, pass the string to sanitize_title() and then run the query by slug. That'll work in every case except where there are duplicate names (and in that case, one cannot complain).
     5If query is by name and the string is not numeric, pass it to sanitize_title() and then run the query by slug. That'll work in every case except where there are duplicate names (and in that case, one cannot complain).