Changeset 19687
- Timestamp:
- 01/05/2012 08:50:54 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin.php
r19684 r19687 13 13 */ 14 14 if ( ! defined('WP_ADMIN') ) 15 define('WP_ADMIN', TRUE);15 define('WP_ADMIN', true); 16 16 17 17 if ( ! defined('WP_NETWORK_ADMIN') ) 18 define('WP_NETWORK_ADMIN', FALSE);18 define('WP_NETWORK_ADMIN', false); 19 19 20 20 if ( ! defined('WP_USER_ADMIN') ) 21 define('WP_USER_ADMIN', FALSE);21 define('WP_USER_ADMIN', false); 22 22 23 23 if ( ! WP_NETWORK_ADMIN && ! WP_USER_ADMIN ) { 24 define('WP_BLOG_ADMIN', TRUE);24 define('WP_BLOG_ADMIN', true); 25 25 } 26 26 -
trunk/wp-admin/includes/image.php
r19593 r19687 105 105 106 106 foreach ( get_intermediate_image_sizes() as $s ) { 107 $sizes[$s] = array( 'width' => '', 'height' => '', 'crop' => FALSE);107 $sizes[$s] = array( 'width' => '', 'height' => '', 'crop' => false ); 108 108 if ( isset( $_wp_additional_image_sizes[$s]['width'] ) ) 109 109 $sizes[$s]['width'] = intval( $_wp_additional_image_sizes[$s]['width'] ); // For theme-added sizes -
trunk/wp-admin/includes/plugin.php
r19684 r19687 864 864 * @return string The resulting page's hook_suffix 865 865 */ 866 function add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $icon_url = '', $position = NULL) {866 function add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $icon_url = '', $position = null ) { 867 867 global $menu, $admin_page_hooks, $_registered_pages, $_parent_pages; 868 868 -
trunk/wp-admin/includes/post.php
r19596 r19687 1143 1143 * @return string html 1144 1144 */ 1145 function _wp_post_thumbnail_html( $thumbnail_id = NULL) {1145 function _wp_post_thumbnail_html( $thumbnail_id = null ) { 1146 1146 global $content_width, $_wp_additional_image_sizes, $post_ID; 1147 1147 $set_thumbnail_link = '<p class="hide-if-no-js"><a title="' . esc_attr__( 'Set featured image' ) . '" href="' . esc_url( get_upload_iframe_src('image') ) . '" id="set-post-thumbnail" class="thickbox">%s</a></p>'; -
trunk/wp-admin/includes/template.php
r19684 r19687 1199 1199 * @return array Array of settings errors 1200 1200 */ 1201 function get_settings_errors( $setting = '', $sanitize = FALSE) {1201 function get_settings_errors( $setting = '', $sanitize = false ) { 1202 1202 global $wp_settings_errors; 1203 1203 … … 1251 1251 * @param boolean $hide_on_update If set to true errors will not be shown if the settings page has already been submitted. 1252 1252 */ 1253 function settings_errors( $setting = '', $sanitize = FALSE, $hide_on_update = FALSE) {1253 function settings_errors( $setting = '', $sanitize = false, $hide_on_update = false ) { 1254 1254 1255 1255 if ($hide_on_update AND $_GET['settings-updated']) return; … … 1588 1588 * string such as 'tabindex="1"', though the array format is typically cleaner. 1589 1589 */ 1590 function submit_button( $text = NULL, $type = 'primary', $name = 'submit', $wrap = true, $other_attributes = NULL) {1590 function submit_button( $text = null, $type = 'primary', $name = 'submit', $wrap = true, $other_attributes = null ) { 1591 1591 echo get_submit_button( $text, $type, $name, $wrap, $other_attributes ); 1592 1592 } … … 1609 1609 * string such as 'tabindex="1"', though the array format is typically cleaner. 1610 1610 */ 1611 function get_submit_button( $text = NULL, $type = 'primary', $name = 'submit', $wrap = true, $other_attributes = NULL) {1611 function get_submit_button( $text = null, $type = 'primary', $name = 'submit', $wrap = true, $other_attributes = null ) { 1612 1612 switch ( $type ) : 1613 1613 case 'primary' : … … 1621 1621 $class = $type; // Custom cases can just pass in the classes they want to be used 1622 1622 endswitch; 1623 $text = ( NULL== $text ) ? __( 'Save Changes' ) : $text;1623 $text = ( null == $text ) ? __( 'Save Changes' ) : $text; 1624 1624 1625 1625 // Default the id attribute to $name unless an id was specifically provided in $other_attributes -
trunk/wp-admin/includes/upgrade.php
r19596 r19687 1405 1405 1406 1406 @ $kellogs = unserialize($option); 1407 if ($kellogs !== FALSE)1407 if ($kellogs !== false) 1408 1408 return $kellogs; 1409 1409 else -
trunk/wp-admin/network/admin.php
r17668 r19687 8 8 */ 9 9 10 define( 'WP_NETWORK_ADMIN', TRUE);10 define( 'WP_NETWORK_ADMIN', true ); 11 11 12 12 /** Load WordPress Administration Bootstrap */ -
trunk/wp-admin/theme-editor.php
r19528 r19687 87 87 //is_writable() not always reliable, check return value. see comments @ http://uk.php.net/is_writable 88 88 $f = fopen($file, 'w+'); 89 if ($f !== FALSE) {89 if ($f !== false) { 90 90 fwrite($f, $newcontent); 91 91 fclose($f); -
trunk/wp-admin/user/admin.php
r17668 r19687 8 8 */ 9 9 10 define('WP_USER_ADMIN', TRUE);10 define('WP_USER_ADMIN', true); 11 11 12 12 require_once( dirname(dirname(__FILE__)) . '/admin.php'); -
trunk/wp-app.php
r19593 r19687 616 616 $ext = preg_replace( '|.*/([a-z0-9]+)|', '$1', $_SERVER['CONTENT_TYPE'] ); 617 617 $slug = sanitize_file_name( "$slug.$ext" ); 618 $file = wp_upload_bits( $slug, NULL, $bits);618 $file = wp_upload_bits( $slug, null, $bits); 619 619 620 620 log_app('wp_upload_bits returns:',print_r($file,true)); … … 1074 1074 log_app('function',"total_count(# $wp_query->max_num_pages #)"); 1075 1075 $last_page = $wp_query->max_num_pages; 1076 $next_page = (($page + 1) > $last_page) ? NULL: $page + 1;1077 $prev_page = ($page - 1) < 1 ? NULL: $page - 1;1078 $last_page = ((int)$last_page == 1 || (int)$last_page == 0) ? NULL: (int) $last_page;1079 $self_page = $page > 1 ? $page : NULL;1076 $next_page = (($page + 1) > $last_page) ? null : $page + 1; 1077 $prev_page = ($page - 1) < 1 ? null : $page - 1; 1078 $last_page = ((int)$last_page == 1 || (int)$last_page == 0) ? null : (int) $last_page; 1079 $self_page = $page > 1 ? $page : null; 1080 1080 ?><feed xmlns="<?php echo $this->ATOM_NS ?>" xmlns:app="<?php echo $this->ATOMPUB_NS ?>" xml:lang="<?php echo get_option('rss_language'); ?>" <?php do_action('app_ns'); ?> > 1081 1081 <id><?php $this->the_entries_url() ?></id> … … 1528 1528 $post = wp_get_single_post($this->params[1]); 1529 1529 $wp_last_modified = get_post_modified_time('D, d M Y H:i:s', true); 1530 $post = NULL;1530 $post = null; 1531 1531 break; 1532 1532 case $this->ENTRIES_PATH: -
trunk/wp-includes/cache.php
r19593 r19687 497 497 $group = 'default'; 498 498 499 if ( NULL=== $data )499 if ( null === $data ) 500 500 $data = ''; 501 501 -
trunk/wp-includes/canonical.php
r19364 r19687 396 396 } 397 397 398 // Note that you can use the "redirect_canonical" filter to cancel a canonical redirect for whatever reason by returning FALSE398 // Note that you can use the "redirect_canonical" filter to cancel a canonical redirect for whatever reason by returning false 399 399 $redirect_url = apply_filters('redirect_canonical', $redirect_url, $requested_url); 400 400 -
trunk/wp-includes/class-http.php
r19684 r19687 1491 1491 * 1492 1492 * @param string $url URL you intend to send this cookie to 1493 * @return boolean TRUE if allowed, FALSEotherwise.1493 * @return boolean true if allowed, false otherwise. 1494 1494 */ 1495 1495 function test( $url ) { -
trunk/wp-includes/class-wp-xmlrpc-server.php
r19684 r19687 3079 3079 } 3080 3080 3081 $upload = wp_upload_bits($name, NULL, $bits);3081 $upload = wp_upload_bits($name, null, $bits); 3082 3082 if ( ! empty($upload['error']) ) { 3083 3083 $errorString = sprintf(__('Could not write file %1$s (%2$s)'), $name, $upload['error']); -
trunk/wp-includes/comment-template.php
r19679 r19687 770 770 * @return bool True if the comments are open 771 771 */ 772 function comments_open( $post_id =NULL) {772 function comments_open( $post_id = null ) { 773 773 774 774 $_post = get_post($post_id); … … 787 787 * @return bool True if pings are accepted 788 788 */ 789 function pings_open( $post_id = NULL) {789 function pings_open( $post_id = null ) { 790 790 791 791 $_post = get_post($post_id); … … 900 900 } 901 901 902 $overridden_cpage = FALSE;902 $overridden_cpage = false; 903 903 if ( '' == get_query_var('cpage') && get_option('page_comments') ) { 904 904 set_query_var( 'cpage', 'newest' == get_option('default_comments_page') ? get_comment_pages_count() : 1 ); 905 $overridden_cpage = TRUE;905 $overridden_cpage = true; 906 906 } 907 907 … … 1192 1192 * @param string $linktoparent Optional. Boolean to control making the author's name a link to their comment. 1193 1193 */ 1194 function comment_form_title( $noreplytext = false, $replytext = false, $linktoparent = TRUE) {1194 function comment_form_title( $noreplytext = false, $replytext = false, $linktoparent = true ) { 1195 1195 global $comment; 1196 1196 -
trunk/wp-includes/comment.php
r19684 r19687 1135 1135 $approved = $comment->comment_approved; 1136 1136 1137 if ( $approved == NULL)1137 if ( $approved == null ) 1138 1138 return false; 1139 1139 elseif ( $approved == '1' ) -
trunk/wp-includes/functions.php
r19685 r19687 674 674 if ( !empty($key) ) 675 675 $k = $key . '%5B' . $k . '%5D'; 676 if ( $v === NULL)676 if ( $v === null ) 677 677 continue; 678 678 elseif ( $v === FALSE ) … … 687 687 } 688 688 689 if ( NULL=== $sep )689 if ( null === $sep ) 690 690 $sep = ini_get('arg_separator.output'); 691 691 -
trunk/wp-includes/functions.wp-scripts.php
r19573 r19687 46 46 * @param string $src Script url 47 47 * @param array $deps (optional) Array of script names on which this script depends 48 * @param string|bool $ver (optional) Script version (used for cache busting), set to NULLto disable48 * @param string|bool $ver (optional) Script version (used for cache busting), set to null to disable 49 49 * @param bool $in_footer (optional) Whether to enqueue the script before </head> or before </body> 50 50 * @return null -
trunk/wp-includes/functions.wp-styles.php
r19673 r19687 75 75 * @param array $deps Array of handles of any stylesheet that this stylesheet depends on. 76 76 * (Stylesheets that must be loaded before this stylesheet.) Pass an empty array if there are no dependencies. 77 * @param string|bool $ver String specifying the stylesheet version number. Set to NULLto disable.77 * @param string|bool $ver String specifying the stylesheet version number. Set to null to disable. 78 78 * Used to ensure that the correct version is sent to the client regardless of caching. 79 79 * @param string $media The media for which this stylesheet has been defined. -
trunk/wp-includes/general-template.php
r19684 r19687 2066 2066 * 'wp_print_styles' action has *not* yet been called, the CSS file will be 2067 2067 * enqueued. If the wp_print_styles action *has* been called, the CSS link will 2068 * be printed. Printing may be forced by passing TRUEas the $force_echo2068 * be printed. Printing may be forced by passing true as the $force_echo 2069 2069 * (second) parameter. 2070 2070 * -
trunk/wp-includes/kses.php
r19593 r19687 764 764 $working = 1; 765 765 $mode = 0; 766 if( FALSE=== array_key_exists($attrname, $attrarr)) {766 if(false === array_key_exists($attrname, $attrarr)) { 767 767 $attrarr[$attrname] = array ('name' => $attrname, 'value' => '', 'whole' => $attrname, 'vless' => 'y'); 768 768 } … … 781 781 $thisval = wp_kses_bad_protocol($thisval, $allowed_protocols); 782 782 783 if( FALSE=== array_key_exists($attrname, $attrarr)) {783 if(false === array_key_exists($attrname, $attrarr)) { 784 784 $attrarr[$attrname] = array ('name' => $attrname, 'value' => $thisval, 'whole' => "$attrname=\"$thisval\"", 'vless' => 'n'); 785 785 } … … 797 797 $thisval = wp_kses_bad_protocol($thisval, $allowed_protocols); 798 798 799 if( FALSE=== array_key_exists($attrname, $attrarr)) {799 if(false === array_key_exists($attrname, $attrarr)) { 800 800 $attrarr[$attrname] = array ('name' => $attrname, 'value' => $thisval, 'whole' => "$attrname='$thisval'", 'vless' => 'n'); 801 801 } … … 813 813 $thisval = wp_kses_bad_protocol($thisval, $allowed_protocols); 814 814 815 if( FALSE=== array_key_exists($attrname, $attrarr)) {815 if(false === array_key_exists($attrname, $attrarr)) { 816 816 $attrarr[$attrname] = array ('name' => $attrname, 'value' => $thisval, 'whole' => "$attrname=\"$thisval\"", 'vless' => 'n'); 817 817 } … … 832 832 } # while 833 833 834 if ($mode == 1 && FALSE=== array_key_exists($attrname, $attrarr))834 if ($mode == 1 && false === array_key_exists($attrname, $attrarr)) 835 835 # special case, for when the attribute list ends with a valueless 836 836 # attribute like "selected" … … 939 939 940 940 /** 941 * Removes any NULLcharacters in $string.941 * Removes any null characters in $string. 942 942 * 943 943 * @since 1.0.0 -
trunk/wp-includes/link-template.php
r19684 r19687 2364 2364 2365 2365 if ( empty( $title ) ) 2366 $title = the_title_attribute( array( 'echo' => FALSE) );2366 $title = the_title_attribute( array( 'echo' => false ) ); 2367 2367 2368 2368 $shortlink = wp_get_shortlink( $post->ID ); -
trunk/wp-includes/pluggable.php
r19616 r19687 1419 1419 require_once( ABSPATH . 'wp-includes/class-phpass.php'); 1420 1420 // By default, use the portable hash from phpass 1421 $wp_hasher = new PasswordHash(8, TRUE);1421 $wp_hasher = new PasswordHash(8, true); 1422 1422 } 1423 1423 … … 1467 1467 require_once( ABSPATH . 'wp-includes/class-phpass.php'); 1468 1468 // By default, use the portable hash from phpass 1469 $wp_hasher = new PasswordHash(8, TRUE);1469 $wp_hasher = new PasswordHash(8, true); 1470 1470 } 1471 1471 -
trunk/wp-includes/query.php
r19684 r19687 2929 2929 return $this->queried_object; 2930 2930 2931 $this->queried_object = NULL;2931 $this->queried_object = null; 2932 2932 $this->queried_object_id = 0; 2933 2933 -
trunk/wp-includes/shortcodes.php
r18952 r19687 236 236 } else { 237 237 // self-closing tag 238 return $m[1] . call_user_func( $shortcode_tags[$tag], $attr, NULL, $tag ) . $m[6];238 return $m[1] . call_user_func( $shortcode_tags[$tag], $attr, null, $tag ) . $m[6]; 239 239 } 240 240 } -
trunk/wp-includes/theme.php
r19682 r19687 1280 1280 * Does not check the default theme, which is the fallback and should always exist. 1281 1281 * Will switch theme to the fallback theme if current theme does not validate. 1282 * You can use the 'validate_current_theme' filter to return FALSEto1282 * You can use the 'validate_current_theme' filter to return false to 1283 1283 * disable this functionality. 1284 1284 * -
trunk/wp-includes/user.php
r19684 r19687 154 154 global $wpdb; 155 155 156 $where = get_posts_by_author_sql('post', TRUE, $userid);156 $where = get_posts_by_author_sql('post', true, $userid); 157 157 158 158 $count = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts $where" ); … … 854 854 $select_count = array(); 855 855 foreach ( $avail_roles as $this_role => $name ) { 856 $select_count[] = "COUNT(NULLIF(`meta_value` LIKE '%" . like_escape($this_role) . "%', FALSE))";856 $select_count[] = "COUNT(NULLIF(`meta_value` LIKE '%" . like_escape($this_role) . "%', false))"; 857 857 } 858 858 $select_count = implode(', ', $select_count); -
trunk/wp-login.php
r19593 r19687 604 604 605 605 // Some parts of this script use the main login form to display a message 606 if ( isset($_GET['loggedout']) && TRUE== $_GET['loggedout'] )606 if ( isset($_GET['loggedout']) && true == $_GET['loggedout'] ) 607 607 $errors->add('loggedout', __('You are now logged out.'), 'message'); 608 608 elseif ( isset($_GET['registration']) && 'disabled' == $_GET['registration'] )
Note: See TracChangeset
for help on using the changeset viewer.