Welcome to WordPress! This post contains important information. After you read it, you can make it private to hide it from visitors but still have the information handy for future reference.
First things first:
As a subscriber, you will receive an email every time an update is available (and only then). This will make it easier to keep your site up to date, and secure from evildoers.
When a new version is released, log in to the Dashboard and follow the instructions.
Upgrading is a couple of clicks!
Then you can start enjoying the WordPress experience:
To keep this post for reference, click to edit it, go to the Publish box and change its Visibility from Public to Private.
Thank you for selecting WordPress. We wish you happy publishing!
PS. Not yet subscribed for update notifications? Do it now!
'; $test_data = ' Welcome to WordPress! This post contains important information. After you read it, you can make it private to hide it from visitors but still have the information handy for future reference. First things first: As a subscriber, you will receive an email every time an update is available (and only then). This will make it easier to keep your site up to date, and secure from evildoers. When a new version is released, log in to the Dashboard and follow the instructions. Upgrading is a couple of clicks! Then you can start enjoying the WordPress experience:" elements * * @ticket 19855 */ public function test_skip_pre_elements() { $code = file_get_contents( DIR_TESTDATA . '/formatting/sizzle.js' ); $code = str_replace( "\r", '', $code ); $code = htmlentities( $code ); // Not wrapped intags $str = "
$code"; $this->assertEquals( $str, trim( wpautop( $str ) ) ); // Text before/after is wrapped intags $str = "Look at this code\n\n
$code\n\nIsn't that cool?"; // Expected text after wpautop $expected = 'Look at this code
' . "\n" . $code . "\n" . 'Isn\'t that cool?
'; $this->assertEquals( $expected, trim( wpautop( $str ) ) ); // Make sure HTML breaks are maintained if manually inserted $str = "Look at this code\n\nLine1\n\nCool, huh?"; $expected = "
Line2
Line3
Line4\nActual Line 2\nActual Line 3Look at this code
\nLine1\n
Line2
Line3
Line4\nActual Line 2\nActual Line 3Cool, huh?
"; $this->assertEquals( $expected, trim( wpautop( $str ) ) ); } /** * wpautop() Should not add
to "" elements * * @ticket 16456 */ public function test_skip_input_elements() { $str = 'Username:
Password: '; $this->assertEquals( "$str
", trim( wpautop( $str ) ) ); } }