WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/07/2020 07:23:04 PM (4 months ago)
Author:
whyisjake
Message:

Docs: Correct usage of the dynamic auto_update_{$type} filter.

This ensures that the canonical name of the filter is used in Site Health debug data, as well as on plugin and theme screens, so the developer reference site remains correct.

This brings the changes from [48750] to the 5.5 branch.

Props johnbillion.
Fixes #50868, see [48750].

Location:
branches/5.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.5

  • branches/5.5/src/wp-admin/includes/class-wp-automatic-updater.php

    r48702 r48756  
    180180         *
    181181         * The dynamic portion of the hook name, `$type`, refers to the type of update
    182          * being checked. Can be 'core', 'theme', 'plugin', or 'translation'.
     182         * being checked. Potential hook names include:
     183         *
     184         *  - `auto_update_core`
     185         *  - `auto_update_plugin`
     186         *  - `auto_update_theme`
     187         *  - `auto_update_translation`
    183188         *
    184189         * Generally speaking, plugins, themes, and major core versions are not updated
Note: See TracChangeset for help on using the changeset viewer.