[wp-trac] [WordPress Trac] #17935: Quick edit in admin bypasses custom_column filters in wp-admin/edit.php
WordPress Trac
noreply at wordpress.org
Fri Dec 6 16:51:42 UTC 2013
#17935: Quick edit in admin bypasses custom_column filters in wp-admin/edit.php
----------------------------+-----------------------------
Reporter: postpostmodern | Owner: wonderboymusic
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Query | Version: 3.2
Severity: normal | Resolution: wontfix
Keywords: has-patch |
----------------------------+-----------------------------
Comment (by postpostmodern):
Replying to [comment:11 nacin]:
> Adding new fields into WP_Query for what you're trying to do isn't
supported. It pollutes the cache and can cause all sorts of problems and
inconsistencies. You're going to want to instead use get_post_meta(), not
$post->price. Then you won't have a problem in either context.
I will have a problem if I wish to sort on price. I don't quite
understand how this pollutes the cache or causes problems - the
posts_fields, posts_join, posts_orderby etc. filters are all supported and
documented. Would adding {{{'cache_results' => false}}} to the query
solve this?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17935#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list