[wp-trac] [WordPress Trac] #51827: When a plugin makes use of the 'automatic_updater_disabled' filter, it causes a PHP Warning to be thrown.

WordPress Trac noreply at wordpress.org
Sat Nov 21 13:58:48 UTC 2020


#51827: When a plugin makes use of the 'automatic_updater_disabled' filter, it
causes a PHP Warning to be thrown.
-------------------------------------------------+-------------------------
 Reporter:  jamesros161                          |       Owner:  audrasjb
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  highest omg bbq                      |   Milestone:  5.6
Component:  Upgrade/Install                      |     Version:  5.6
 Severity:  normal                               |  Resolution:
 Keywords:  has-screenshots has-patch 2nd-       |     Focuses:
  opinion needs-testing                          |
-------------------------------------------------+-------------------------
Changes (by azaozz):

 * keywords:  has-screenshots => has-screenshots has-patch 2nd-opinion
     needs-testing
 * priority:  normal => highest omg bbq


Comment:

 In 51827.2.patch:
 - Replace the conditionals that check `AUTOMATIC_UPDATER_DISABLED` and
 `automatic_updater_disabled` filter in update-core.php with a call to
 `WP_Automatic_Updater::is_disabled()`.
 - Also check `wp_is_file_mod_allowed( 'automatic_updater' )` when
 disabling the UI.

 Please test! :)

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


More information about the wp-trac mailing list