Make WordPress Core


Ignore:
Timestamp:
01/05/2012 08:50:54 PM (13 years ago)
Author:
ryan
Message:

User lowercase true, false, null instead of uppercase. Props c3mdigital, mfields. fixes #16302

File:
1 edited

Legend:

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

    r19684 r19687  
    11991199 * @return array Array of settings errors
    12001200 */
    1201 function get_settings_errors( $setting = '', $sanitize = FALSE ) {
     1201function get_settings_errors( $setting = '', $sanitize = false ) {
    12021202    global $wp_settings_errors;
    12031203
     
    12511251 * @param boolean $hide_on_update If set to true errors will not be shown if the settings page has already been submitted.
    12521252 */
    1253 function settings_errors( $setting = '', $sanitize = FALSE, $hide_on_update = FALSE ) {
     1253function settings_errors( $setting = '', $sanitize = false, $hide_on_update = false ) {
    12541254
    12551255    if ($hide_on_update AND $_GET['settings-updated']) return;
     
    15881588 *                     string such as 'tabindex="1"', though the array format is typically cleaner.
    15891589 */
    1590 function submit_button( $text = NULL, $type = 'primary', $name = 'submit', $wrap = true, $other_attributes = NULL ) {
     1590function submit_button( $text = null, $type = 'primary', $name = 'submit', $wrap = true, $other_attributes = null ) {
    15911591    echo get_submit_button( $text, $type, $name, $wrap, $other_attributes );
    15921592}
     
    16091609 *                     string such as 'tabindex="1"', though the array format is typically cleaner.
    16101610 */
    1611 function get_submit_button( $text = NULL, $type = 'primary', $name = 'submit', $wrap = true, $other_attributes = NULL ) {
     1611function get_submit_button( $text = null, $type = 'primary', $name = 'submit', $wrap = true, $other_attributes = null ) {
    16121612    switch ( $type ) :
    16131613        case 'primary' :
     
    16211621            $class = $type; // Custom cases can just pass in the classes they want to be used
    16221622    endswitch;
    1623     $text = ( NULL == $text ) ? __( 'Save Changes' ) : $text;
     1623    $text = ( null == $text ) ? __( 'Save Changes' ) : $text;
    16241624
    16251625    // Default the id attribute to $name unless an id was specifically provided in $other_attributes
Note: See TracChangeset for help on using the changeset viewer.