Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: allow_minor_auto_core_updates

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
459                          /* translators: %s: Name of the constant used. */
460                          __( 'WordPress security and maintenance releases are blocked by %s.' ),
461                          "<code>define( 'WP_AUTO_UPDATE_CORE', false );</code>"
462                     ),
463                     'severity'    => 'fail',
464                );
465           }
466
467           /** This filter is documented in wp-admin/includes/class-core-upgrader.php */
468           if ( ! apply_filters( 'allow_minor_auto_core_updates', true ) ) {
469                return array(
470                     'description' => sprintf(
471                          /* translators: %s: Name of the filter used. */
472                          __( 'WordPress security and maintenance releases are blocked by the %s filter.' ),
473                          '<code>allow_minor_auto_core_updates</code>'
474                     ),
475                     'severity'    => 'fail',
476                );
477           }