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

WordPress Trac noreply at wordpress.org
Fri Nov 20 17:45:19 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 paulschreiber):

 @pbiron Rough sketch:
 * reach out to server for updates, and cache array of values, A1
 * apply auto_update_plugin / auto_update_theme filters, resulting in an
 array, A2
 * if A1[n] == update available and A2[n] == no update, print "update
 disabled"
 * if A1[n] == no update and A2[n] == no update, print "no update
 available"
 * if A[1n] == update and A2[n] == update, print "update available"

 If it makes it easier, a v1 solution could only consider wordpress.org-
 hosted updates? That would help, even if it doesn't handle 100% of cases.

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


More information about the wp-trac mailing list