Make WordPress Core

Ticket #28344: 28344.3.patch

File 28344.3.patch, 1.1 KB (added by swissspidy, 8 years ago)
  • src/wp-admin/options-general.php

    diff --git src/wp-admin/options-general.php src/wp-admin/options-general.php
    index cbb7d2f..2c1de17 100644
    if ( $new_admin_email && $new_admin_email != get_option('admin_email') ) : ?> 
    167167</td>
    168168</tr>
    169169<?php } ?>
     170</table>
     171<h3 class="title"><?php _e( 'Locale' ); ?></h3>
     172<table class="form-table">
    170173<tr>
    171174<?php
    172175$current_offset = get_option('gmt_offset');
    if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists 
    317320        </fieldset>
    318321</td>
    319322</tr>
     323<?php
     324/**
     325 * Filter the visibility of the "Week Starts On" setting.
     326 *
     327 * @since 4.4.0
     328 *
     329 * @param bool $show_setting Whether the setting should be shown. Defaults to false.
     330 */
     331$show_start_of_week = apply_filters( 'show_start_of_week_setting', false );
     332if ( $show_start_of_week ) : ?>
    320333<tr>
    321334<th scope="row"><label for="start_of_week"><?php _e('Week Starts On') ?></label></th>
    322335<td><select name="start_of_week" id="start_of_week">
    endfor; 
    333346?>
    334347</select></td>
    335348</tr>
     349<?php endif; ?>
    336350<?php do_settings_fields('general', 'default'); ?>
    337351
    338352<?php