Make WordPress Core


Ignore:
Timestamp:
08/07/2020 04:12:11 PM (6 years ago)
Author:
SergeyBiryukov
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.

Props johnbillion.
Fixes #50868.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/theme.php

    r48688 r48750  
    717717        }
    718718
    719         /** This action is documented in wp-admin/includes/class-wp-automatic-updater.php */
    720         $auto_update_forced = apply_filters( 'auto_update_theme', null, $auto_update_filter_payload );
     719        $type = 'theme';
     720        /** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */
     721        $auto_update_forced = apply_filters( "auto_update_{$type}", null, $auto_update_filter_payload );
    721722
    722723        $prepared_themes[ $slug ] = array(
Note: See TracChangeset for help on using the changeset viewer.