[wp-trac] [WordPress Trac] #29710: Add hooks to wpdb's insert(), update(), delete() and similar methods
WordPress Trac
noreply at wordpress.org
Tue Jul 28 09:43:49 UTC 2015
#29710: Add hooks to wpdb's insert(), update(), delete() and similar methods
-------------------------+------------------------------
Reporter: borekb | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Database | Version: 2.5
Severity: normal | Resolution:
Keywords: 2nd-opinion | Focuses:
-------------------------+------------------------------
Comment (by dd32):
Replying to [comment:22 borekb]:
> Replying to [comment:21 dd32]:
>
> That will work until some plugin uses type hinting / checking on
`$wpdb`. Not sure how common that is but the whole site will break then.
I personally don't expect any plugins/sites to ever do that, for the
simple sense that db dropins don't have to extend wpdb (although it's
encouraged). If they're acting that strict, chances are it'll break on
plenty of other common plugin methods used.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29710#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list