WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #31071, comment 51


Ignore:
Timestamp:
12/23/2016 10:00:52 PM (2 years ago)
Author:
shakeels
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31071, comment 51

    initial v1  
    11@GunGeekATX That's the same issue that we have here.  It's a large site and based on how we are doing things, we know that it's always going to be a certain way.  There is no sense in even doing the lookup.  A filter on it would probably be an ideal setup for us as well.
     2
     3I basically ended up using @sboisvert patch that adds a filter.  Like in @GunGeekATX case, we always know that the value will be constant because of how we are using it.  In that case, for me, it's far easier to just bypass the entire query and just return false.  For us, that works right now, but it would be nice to get this into core so I don't have to patch it.