~canonical-sysadmins/wordpress/4.8.1

« back to all changes in this revision

Viewing changes to wp-admin/options-general.php

  • Committer: Barry Price
  • Date: 2016-08-17 04:50:12 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: barry.price@canonical.com-20160817045012-qfui81zhqnqv2ba9
Merge WP4.6 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
14
14
 
15
15
if ( ! current_user_can( 'manage_options' ) )
16
 
        wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
 
16
        wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );
17
17
 
18
18
$title = __('General Settings');
19
19
$parent_file = 'options-general.php';
20
 
/* translators: date and time format for exact current time, mainly about timezones, see http://php.net/date */
 
20
/* translators: date and time format for exact current time, mainly about timezones, see https://secure.php.net/date */
21
21
$timezone_format = _x('Y-m-d H:i:s', 'timezone date format');
22
22
 
23
23
add_action('admin_head', 'options_general_add_js');
112
112
        );
113
113
        printf(
114
114
                ' <a href="%1$s">%2$s</a>',
115
 
                esc_url( admin_url( 'options.php?dismiss=new_admin_email' ) ),
 
115
                esc_url( wp_nonce_url( admin_url( 'options.php?dismiss=new_admin_email' ), 'dismiss-' . get_current_blog_id() . '-new_admin_email' ) ),
116
116
                __( 'Cancel' )
117
117
        );
118
118
?></p>
231
231
        <fieldset><legend class="screen-reader-text"><span><?php _e('Date Format') ?></span></legend>
232
232
<?php
233
233
        /**
234
 
        * Filter the default date formats.
 
234
        * Filters the default date formats.
235
235
        *
236
236
        * @since 2.7.0
237
237
        * @since 4.0.0 Added ISO date standard YYYY-MM-DD format.
268
268
        <fieldset><legend class="screen-reader-text"><span><?php _e('Time Format') ?></span></legend>
269
269
<?php
270
270
        /**
271
 
        * Filter the default time formats.
 
271
        * Filters the default time formats.
272
272
        *
273
273
        * @since 2.7.0
274
274
        *
353
353
                                        </p>
354
354
                                        <?php
355
355
                                }
356
 
                                _deprecated_argument( 'define()', '4.0', sprintf( __( 'The %s constant in your %s file is no longer needed.' ), 'WPLANG', 'wp-config.php' ) );
 
356
                                _deprecated_argument( 'define()', '4.0.0', sprintf( __( 'The %s constant in your %s file is no longer needed.' ), 'WPLANG', 'wp-config.php' ) );
357
357
                        }
358
358
                        ?>
359
359
                </td>