[wp-trac] [WordPress Trac] #41266: Not hard coding the table alias prefix in WP_Meta_Query would make class more extendable
WordPress Trac
noreply at wordpress.org
Fri Jul 7 13:36:46 UTC 2017
#41266: Not hard coding the table alias prefix in WP_Meta_Query would make class
more extendable
--------------------------+-----------------------------
Reporter: thomaslhotta | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 4.8
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Hi,
I am extending the WP_Meta_Query class for my own uses with custom tables
that have the same structure as meta tables. It is an incredibly useful
class for this. However the fact that the table alias prefix {{{mt}}} on
line 535 is hard coded forces me to do awkward and complex string replaces
if I want to use my extensions alongside built in meta queries.
I think changing the prefix from being hard coded to a property/function
of the meta query object would make this class much more versatile for
plugin developers.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41266>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list