WordPress.org

Make WordPress Core

Opened 14 months ago

Closed 14 months ago

Last modified 14 months 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
Milestone: 5.5 Priority: normal
Severity: normal Version:
Component: Upgrade/Install Keywords: has-patch
Focuses: Cc:

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 14 months ago.

Download all attachments as: .zip

Change History (5)

@pbiron
14 months ago

#1 @pbiron
14 months ago

  • Keywords has-patch added; needs-patch removed

#2 @SergeyBiryukov
14 months ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to 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
14 months 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
14 months ago

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