We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unsanitized_post_values
1 parent 5ce19d6 commit ef84089Copy full SHA for ef84089
tests/phpunit/tests/customize/manager.php
@@ -2453,6 +2453,15 @@ public function test_unsanitized_post_values_with_changeset_and_stashed_theme_mo
2453
'exclude_changeset' => true,
2454
)
2455
);
2456
+ $this->assertEmpty( $values );
2457
+
2458
+ $manager->add_setting( 'background_color' );
2459
+ $values = $manager->unsanitized_post_values(
2460
+ array(
2461
+ 'exclude_post_data' => true,
2462
+ 'exclude_changeset' => true,
2463
+ )
2464
+ );
2465
$this->assertNotEmpty( $values );
2466
$this->assertArrayHasKey( 'background_color', $values );
2467
$this->assertSame( '#000000', $values['background_color'] );
0 commit comments