mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
$status shouldn't be loosely compared to true in wp_xmlrpc_server::wp_deleteComment().
`$initial` shouldn't be loosely compared to `true` in `get_calendar()`. `current_user_can()` shouldn't be loosely compared to `false` in `kses_init()` `$get_all` shouldn't be loosely compared to `true` in `get_blog_details()`. `is_array()` and `in_array()` shouldn't be loosely compared in `wpmu_validate_user_signup()`. `$result` should by strictly compared in `check_ajax_referer()`. `wp_verify_nonce()` should by strictly compared in `_show_post_preview()`. `is_user_logged_in()` should not be loosly compared against `false` in `wp-signup.php`. See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32733 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -379,7 +379,7 @@ class Tests_WP_Customize_Setting extends WP_UnitTestCase {
|
||||
$post_value = rand_str();
|
||||
$this->manager->set_post_value( $name, $post_value );
|
||||
$setting = new WP_Customize_Setting( $this->manager, $name, compact( 'type' ) );
|
||||
$this->assertNull( $setting->is_current_blog_previewed() );
|
||||
$this->assertFalse( $setting->is_current_blog_previewed() );
|
||||
$setting->preview();
|
||||
$this->assertTrue( $setting->is_current_blog_previewed() );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user