Changeset 32733
- Timestamp:
- 06/12/2015 05:47:16 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r32657 r32733 3255 3255 $status = wp_delete_comment( $comment_ID ); 3256 3256 3257 if ( true ==$status ) {3257 if ( $status ) { 3258 3258 /** 3259 3259 * Fires after a comment has been successfully deleted via XML-RPC. -
trunk/src/wp-includes/general-template.php
r32598 r32733 1646 1646 1647 1647 foreach ( $myweek as $wd ) { 1648 $day_name = (true == $initial)? $wp_locale->get_weekday_initial($wd) : $wp_locale->get_weekday_abbrev($wd);1648 $day_name = $initial ? $wp_locale->get_weekday_initial($wd) : $wp_locale->get_weekday_abbrev($wd); 1649 1649 $wd = esc_attr($wd); 1650 1650 $calendar_output .= "\n\t\t<th scope=\"col\" title=\"$wd\">$day_name</th>"; -
trunk/src/wp-includes/kses.php
r32603 r32733 1462 1462 kses_remove_filters(); 1463 1463 1464 if ( current_user_can('unfiltered_html') == false)1464 if ( ! current_user_can( 'unfiltered_html' ) ) { 1465 1465 kses_init_filters(); 1466 } 1466 1467 } 1467 1468 -
trunk/src/wp-includes/ms-deprecated.php
r31211 r32733 211 211 } 212 212 213 if ( $display == true) {213 if ( $display ) { 214 214 if ( is_array( $most_active ) ) { 215 215 reset( $most_active ); … … 254 254 exit(); 255 255 } 256 if ( empty( $_SERVER['HTTP_REFERER'] ) == false) {256 if ( ! empty( $_SERVER['HTTP_REFERER'] ) ) { 257 257 wp_redirect( $_SERVER['HTTP_REFERER'] ); 258 258 exit(); -
trunk/src/wp-includes/ms-functions.php
r32718 r32733 482 482 483 483 $illegal_names = get_site_option( 'illegal_names' ); 484 if ( is_array( $illegal_names ) == false) {484 if ( ! is_array( $illegal_names ) ) { 485 485 $illegal_names = array( 'www', 'web', 'root', 'admin', 'main', 'invite', 'administrator' ); 486 486 add_site_option( 'illegal_names', $illegal_names ); 487 487 } 488 if ( in_array( $user_name, $illegal_names ) == true)488 if ( in_array( $user_name, $illegal_names ) ) 489 489 $errors->add('user_name', __( 'That username is not allowed.' ) ); 490 490 … … 506 506 507 507 $limited_email_domains = get_site_option( 'limited_email_domains' ); 508 if ( is_array( $limited_email_domains ) && empty( $limited_email_domains ) == false) {508 if ( is_array( $limited_email_domains ) && ! empty( $limited_email_domains ) ) { 509 509 $emaildomain = substr( $user_email, 1 + strpos( $user_email, '@' ) ); 510 if ( in_array( $emaildomain, $limited_email_domains ) == false )510 if ( ! in_array( $emaildomain, $limited_email_domains ) ) { 511 511 $errors->add('user_email', __('Sorry, that email address is not allowed!')); 512 } 512 513 } 513 514 … … 628 629 $errors->add('blogname', __( 'Only lowercase letters (a-z) and numbers are allowed.' ) ); 629 630 630 if ( in_array( $blogname, $illegal_names ) == true)631 if ( in_array( $blogname, $illegal_names ) ) 631 632 $errors->add('blogname', __( 'That name is not allowed.' ) ); 632 633 … … 674 675 675 676 if ( username_exists( $blogname ) ) { 676 if ( is_object( $user ) == false|| ( is_object($user) && ( $user->user_login != $blogname ) ) )677 if ( ! is_object( $user ) || ( is_object($user) && ( $user->user_login != $blogname ) ) ) 677 678 $errors->add( 'blogname', __( 'Sorry, that site is reserved!' ) ); 678 679 } … … 1690 1691 return $dirsize[ $directory ][ 'size' ]; 1691 1692 1692 if ( false ==is_array( $dirsize ) )1693 if ( ! is_array( $dirsize ) ) 1693 1694 $dirsize = array(); 1694 1695 -
trunk/src/wp-includes/pluggable.php
r32702 r32733 1138 1138 $result = wp_verify_nonce( $nonce, $action ); 1139 1139 1140 if ( $die && false == $result ) {1140 if ( $die && false === $result ) { 1141 1141 if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) 1142 1142 wp_die( -1 ); -
trunk/src/wp-includes/revision.php
r32650 r32733 523 523 $id = (int) $_GET['preview_id']; 524 524 525 if ( false == wp_verify_nonce( $_GET['preview_nonce'], 'post_preview_' . $id ) )525 if ( false === wp_verify_nonce( $_GET['preview_nonce'], 'post_preview_' . $id ) ) 526 526 wp_die( __('You do not have permission to preview drafts.') ); 527 527 -
trunk/src/wp-signup.php
r30662 r32733 8 8 require( dirname( __FILE__ ) . '/wp-blog-header.php' ); 9 9 10 if ( is_array( get_site_option( 'illegal_names' )) && isset( $_GET[ 'new' ] ) && in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) == true) {10 if ( is_array( get_site_option( 'illegal_names' )) && isset( $_GET[ 'new' ] ) && in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) ) { 11 11 wp_redirect( network_home_url() ); 12 12 die(); … … 701 701 if ( is_user_logged_in() && ( $active_signup == 'all' || $active_signup == 'blog' ) ) 702 702 signup_another_blog($newblogname); 703 elseif ( is_user_logged_in() == false&& ( $active_signup == 'all' || $active_signup == 'user' ) )703 elseif ( ! is_user_logged_in() && ( $active_signup == 'all' || $active_signup == 'user' ) ) 704 704 signup_user( $newblogname, $user_email ); 705 elseif ( is_user_logged_in() == false&& ( $active_signup == 'blog' ) )705 elseif ( ! is_user_logged_in() && ( $active_signup == 'blog' ) ) 706 706 _e( 'Sorry, new registrations are not allowed at this time.' ); 707 707 else -
trunk/tests/phpunit/tests/customize/setting.php
r31707 r32733 380 380 $this->manager->set_post_value( $name, $post_value ); 381 381 $setting = new WP_Customize_Setting( $this->manager, $name, compact( 'type' ) ); 382 $this->assert Null( $setting->is_current_blog_previewed() );382 $this->assertFalse( $setting->is_current_blog_previewed() ); 383 383 $setting->preview(); 384 384 $this->assertTrue( $setting->is_current_blog_previewed() );
Note: See TracChangeset
for help on using the changeset viewer.