Make WordPress Core

Ticket #43802: 43802.diff

File 43802.diff, 857 bytes (added by henry.wright, 5 years ago)
  • src/wp-admin/includes/schema.php

    diff --git src/wp-admin/includes/schema.php src/wp-admin/includes/schema.php
    index 20853da3ec..d36c1db392 100644
    function populate_options( array $options = array() ) { 
    404404         * for all timezone strings supported by PHP.
    405405         */
    406406        $offset_or_tz = _x( '0', 'default GMT offset or timezone string' ); // phpcs:ignore WordPress.WP.I18n.NoEmptyStrings
     407
     408        /**
     409         * Filters the default GMT offset or timezone string.
     410         *
     411         * @since 5.X.X
     412         *
     413         * @param string $offset_or_tz The default GMT offset or timezone string.
     414         */
     415        $offset_or_tz = apply_filters( 'popular_option_timezone_string', $offset_or_tz );
     416
    407417        if ( is_numeric( $offset_or_tz ) ) {
    408418                $gmt_offset = $offset_or_tz;
    409419        } elseif ( $offset_or_tz && in_array( $offset_or_tz, timezone_identifiers_list() ) ) {