Making WordPress.org

Opened 3 months ago

Closed 3 months ago

Last modified 2 months ago

#7483 closed enhancement ( fixed )

Request: Add `requires_plugins` to the Update Check API.

Reported by:  costdev's profile costdev Owned by:
Milestone: Priority: normal
Component: API Keywords:
Cc:

Description

With the addition of Plugin Dependencies in WordPress Core, it's possible that a dependent plugin may release an update that adds or changes its dependencies.

If a plugin update increases the WordPress/PHP version requirements, WordPress Core notifies the user after checking requires_php , for example, and the update is unavailable and WordPress until are requirements are met.

requires_plugins is already added to the Plugins API when querying information about a plugin. Can we also add it to the Update Check API? Doing so will also enable WordPress Core to prevent auto-updates of plugins, ensuring trust in the auto-updater.

Change History (5)

#1 @ dd32
3 months ago

In thirteen thousand two hundred and forty-one :

Plugin Directory: API: Prepare to include the Plugin dependencies in the update api.

See #7483 , #6921 .

#2 @ dd32
3 months ago

This should be present in the API response now, give it a test and let me know if it seems to work for you.

Note: It's only present if there's an update for the plugin available.

#3 @ costdev
3 months ago

@dd32 Confirming that requires_plugins appears in the API response when a plugin update is available.

Thanks!

#4 @ dd32
3 months ago

  • Resolution set to fixed
  • Status changed from new to closed

This ticket was mentioned in Slack in #meta by courtneyengle. View the logs .


2 months ago

Note: See TracTickets for help on using tickets.