Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#50798 closed defect (bug) (fixed)

disable the plugin/theme auto-updates UI if WP_Automatic_Updates::is_disabled() returns false

Reported by: pbiron Owned by: SergeyBiryukov
Priority: normal Milestone: 5.5
Component: Upgrade/Install Version:
Severity: normal Keywords: has-patch
Cc: Focuses:

Description (last modified by pbiron)

The ticket summary says it all.

This pulls one part of 50280:comment 31 out into its own ticket.

Note: Updated the ticket title to better reflect what the patch does.

Attachments (1)

50798.diff​ (1.7 KB ) - added by pbiron 6 years ago.

Download all attachments as: .zip

Change History (5)

@pbiron
6 years ago

#1 @pbiron
6 years ago

  • Keywords has-patch added; needs-patch removed

#2 @SergeyBiryukov
6 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 48667:

Upgrade/Install: Disable the plugin/theme auto-updates UI if AUTOMATIC_UPDATER_DISABLED is defined and set as true.

Props pbiron, dd32.
Fixes #50798. See #50280.

#3 @whyisjake
6 years ago

In 48669:

Upgrade/Install: Enhance auto-updates to be disabled for plugins that don't suport updates.

This removes the toggle UI when updates aren't available. When plugins use the filter, the UI is updated to show that they are being controlled via code. And then removed entirely when not available.

See #50798.
Fixes #50280.

Props elrae, pbiron, SergeyBiryukov, audrasjb, azaozz, StephenCronin, whyisjake, dd32, TimothyBlynJacobs, desrosj.

#4 @pbiron
6 years ago

  • Description modified (diff)
  • Summary disable the plugin/theme auto-updates UI if AUTOMATIC_UPDATER_DISABLED is defined & true → disable the plugin/theme auto-updates UI if WP_Automatic_Updates::is_disabled() returns false
Note: See TracTickets for help on using tickets.