WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#15221 closed enhancement (fixed)

Add custom upgrade action to update-core.php

Reported by: ampt Owned by:
Milestone: 3.2 Priority: normal
Severity: minor Version:
Component: Upgrade/Install Keywords: has-patch 3.2-early
Focuses: Cc:

Description

Allow plugins to hook into /wp-admin/update-core.php. This also fixes #14456.

Attachments (2)

update-core.15221 (1.4 KB) - added by ampt 3 years ago.
update-core.15221.patch (1.4 KB) - added by ampt 3 years ago.
add .patch suffix

Download all attachments as: .zip

Change History (10)

ampt3 years ago

comment:1 ampt3 years ago

  • Component changed from General to Upgrade/Install

comment:2 ampt3 years ago

  • Type changed from defect (bug) to enhancement

comment:3 ampt3 years ago

  • Keywords has-patch added
  • Severity changed from normal to minor

comment:4 scribu3 years ago

You should end your patches with .patch or .diff so that syntax highlighting kicks in.

ampt3 years ago

add .patch suffix

comment:5 dd323 years ago

  • Keywords 3.2-early added
  • Milestone changed from Awaiting Review to Future Release

Looks like a good idea to me.

comment:6 dd323 years ago

  • Milestone changed from Future Release to 3.2

comment:7 dd323 years ago

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

(In [17589]) Allow plugins to hook into /wp-admin/update-core.php. Props ampt. Fixes #15221

comment:8 dd323 years ago

I changed the hook name slightly to fit in alongside the one in update.php

Note: See TracTickets for help on using tickets.