WordPress.org

Make WordPress Core

Changeset 42786


Ignore:
Timestamp:
03/05/2018 09:43:25 PM (22 months ago)
Author:
johnbillion
Message:

Upgrade/Install: Fix the format of the upgrader_process_complete actions after [42343].

More info: https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/1323

See #41057, #42505

Location:
trunk/src/wp-admin/includes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-core-upgrader.php

    r42777 r42786  
    190190
    191191        /** This action is documented in wp-admin/includes/class-wp-upgrader.php */
    192         do_action(
    193             'upgrader_process_complete', $this, array(
    194                 'action' => 'update',
    195                 'type'   => 'core',
    196             )
    197         );
     192        do_action( 'upgrader_process_complete', $this, array(
     193            'action' => 'update',
     194            'type'   => 'core',
     195        ) );
    198196
    199197        // Clear the current updates
  • trunk/src/wp-admin/includes/class-language-pack-upgrader.php

    r42777 r42786  
    275275
    276276        /** This action is documented in wp-admin/includes/class-wp-upgrader.php */
    277         do_action(
    278             'upgrader_process_complete', $this, array(
    279                 'action'       => 'update',
    280                 'type'         => 'translation',
    281                 'bulk'         => true,
    282                 'translations' => $language_updates_results,
    283             )
    284         );
     277        do_action( 'upgrader_process_complete', $this, array(
     278            'action'       => 'update',
     279            'type'         => 'translation',
     280            'bulk'         => true,
     281            'translations' => $language_updates_results,
     282        ) );
    285283
    286284        // Re-add upgrade hooks.
  • trunk/src/wp-admin/includes/class-plugin-upgrader.php

    r42777 r42786  
    308308
    309309        /** This action is documented in wp-admin/includes/class-wp-upgrader.php */
    310         do_action(
    311             'upgrader_process_complete', $this, array(
    312                 'action'  => 'update',
    313                 'type'    => 'plugin',
    314                 'bulk'    => true,
    315                 'plugins' => $plugins,
    316             )
    317         );
     310        do_action( 'upgrader_process_complete', $this, array(
     311            'action'  => 'update',
     312            'type'    => 'plugin',
     313            'bulk'    => true,
     314            'plugins' => $plugins,
     315        ) );
    318316
    319317        $this->skin->bulk_footer();
Note: See TracChangeset for help on using the changeset viewer.