[wp-trac] [WordPress Trac] #30855: wp_get_update_data() calls are not pluggable
WordPress Trac
noreply at wordpress.org
Sun Dec 28 21:06:12 UTC 2014
#30855: wp_get_update_data() calls are not pluggable
----------------------------+-----------------------------
Reporter: szepe.viktor | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 4.1
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------------------
Up to 4.1 I was able to disable core, themes and plugin updates and
related HTTP traffic.
https://github.com/szepeviktor/wordpress-plugin-
construction/blob/7b64d0ca4981b163b2f08adbe14a5b5238800bd8/mu-disable-
updates/disable-updates.php
In 4.1 new wp_get_update_data() calls are much like hardcoded than
pluggable, I wasn't able to disable them all. Especially not the ones in
wp-admin/menu.php
https://github.com/WordPress/WordPress/blob/master/wp-
admin/menu.php#L33-L34
https://github.com/WordPress/WordPress/blob/master/wp-
admin/menu.php#L183-L187
Could you make wp_get_update_data() calls pluggable? Or give me an advise
to disable them?
My current workaround is to fiddle with the transients:
https://github.com/szepeviktor/wordpress-plugin-construction/blob/master
/mu-disable-updates/disable-updates.php#L98
Thank you!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30855>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list