[wp-trac] [WordPress Trac] #34617: Add filter for shiny updates
WordPress Trac
noreply at wordpress.org
Mon Nov 9 04:42:53 UTC 2015
#34617: Add filter for shiny updates
-----------------------------+------------------------------
Reporter: afragen | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-----------------------------+------------------------------
Comment (by dd32):
> Would that mean that any changes that are done via the filter would be
saved and show up correctly in this instance? If so, that should solve
this issue.
Yes, in your filter you'd do something like the following, which should
just work..
{{{
function( $filter_args...., $upgrader_instance ) {
// Perform rename
$renamed_name = ...
// Update the result of the upgrade routine
$upgrader_instance->result['destination_name'] = $renamed_name;
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34617#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list