[wp-trac] [WordPress Trac] #51836: Show when updates are disabled vs not available

WordPress Trac noreply at wordpress.org
Fri Nov 20 18:02:05 UTC 2020


#51836: Show when updates are disabled vs not available
-----------------------------+------------------------------
 Reporter:  paulschreiber    |       Owner:  (none)
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Upgrade/Install  |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by pbiron):

 The `auto_update_{$type}` filters don't affect whether **manual** updates
 are offered...only auto-updates...so the logic in your "rough sketch"
 wouldn't report that **all** update offers were disabled.

 Question: was the code you show that defined `remove_core_updates()` in a
 "site-specific" plugin or in a general purpose "control updates" plugin?

 Given the specifics of `remove_core_updates()` we could detect that all
 update offers were being removed (since the `updates` property of
 `site_transient_update_core` and `no_update` and `response` properties of
 `site_transient_update_{plugin|theme}` aren't present) but is far from a
 general solution (even limited to .org responses).

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51836#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list