{ hasPublishAction ? __( 'Here, you can do a last-minute check up of your settings below, before you publish.' ) : __( 'When you\'re ready, submit your work for review, and an Editor will be able to approve it for you.' ) }
+{ hasPublishAction ? __( 'Here, you can do a last-minute check up of your settings below, before you publish.' ) : __( "When you're ready, submit your work for review, and an Editor will be able to approve it for you." ) }
{ hasPublishAction && ({ __( 'The content of your post doesn\'t match the template assigned to your post type.' ) }
+{ __( "The content of your post doesn't match the template assigned to your post type." ) }
The goal of this new editor is to make adding rich content to WordPress simple and enjoyable. This whole post is composed of pieces of content—somewhat similar to LEGO bricks—that you can move around and interact with. Move your cursor around and you\'ll notice the different blocks light up with outlines and arrows. Press the arrows to reposition blocks quickly, without fearing about losing things in the process of copying and pasting.
', + "The goal of this new editor is to make adding rich content to WordPress simple and enjoyable. This whole post is composed of pieces of content—somewhat similar to LEGO bricks—that you can move around and interact with. Move your cursor around and you'll notice the different blocks light up with outlines and arrows. Press the arrows to reposition blocks quickly, without fearing about losing things in the process of copying and pasting.
", '', '', @@ -30,15 +30,15 @@ window._wpGutenbergDefaultPost = { '', '', - 'Handling images and media with the utmost care is a primary focus of the new editor. Hopefully, you\'ll find aspects of adding captions or going full-width with your pictures much easier and robust than before.
', + "Handling images and media with the utmost care is a primary focus of the new editor. Hopefully, you'll find aspects of adding captions or going full-width with your pictures much easier and robust than before.
", '', '', - '', + ``, '', '', - 'Try selecting and removing or editing the caption, now you don\'t have to be careful about selecting the image or other text by mistake and ruining the presentation.
', + "Try selecting and removing or editing the caption, now you don't have to be careful about selecting the image or other text by mistake and ruining the presentation.
", '', '', @@ -46,11 +46,11 @@ window._wpGutenbergDefaultPost = { '', '', - 'Imagine everything that WordPress can do is available to you quickly and in the same place on the interface. No need to figure out HTML tags, classes, or remember complicated shortcode syntax. That\'s the spirit behind the inserter—the (+)
button you\'ll see around the editor—which allows you to browse all available content blocks and add them into your post. Plugins and themes are able to register their own, opening up all sort of possibilities for rich editing and publishing.
Imagine everything that WordPress can do is available to you quickly and in the same place on the interface. No need to figure out HTML tags, classes, or remember complicated shortcode syntax. That's the spirit behind the inserter—the (+)
button you'll see around the editor—which allows you to browse all available content blocks and add them into your post. Plugins and themes are able to register their own, opening up all sort of possibilities for rich editing and publishing.
Go give it a try, you may discover things WordPress can already add into your posts that you didn\'t know about. Here\'s a short list of what you can currently find there:
', + "Go give it a try, you may discover things WordPress can already add into your posts that you didn't know about. Here's a short list of what you can currently find there:
", '', '', @@ -74,7 +74,7 @@ window._wpGutenbergDefaultPost = { '', '', - 'The information corresponding to the source of the quote is a separate text field, similar to captions under images, so the structure of the quote is protected even if you select, modify, or remove the source. It\'s always easy to add it back.
', + "The information corresponding to the source of the quote is a separate text field, similar to captions under images, so the structure of the quote is protected even if you select, modify, or remove the source. It's always easy to add it back.
", '', '', @@ -102,7 +102,7 @@ window._wpGutenbergDefaultPost = { '', '', - '', + ``, '', '', @@ -117,7 +117,7 @@ window._wpGutenbergDefaultPost = { '', '', - 'The above is a gallery with just two images. It\'s an easier way to create visually appealing layouts, without having to deal with floats. You can also easily convert the gallery back to individual images again, by using the block switcher.
', + "The above is a gallery with just two images. It's an easier way to create visually appealing layouts, without having to deal with floats. You can also easily convert the gallery back to individual images again, by using the block switcher.
", '', '', @@ -129,7 +129,7 @@ window._wpGutenbergDefaultPost = { '', '', - 'You can build any block you like, static or dynamic, decorative or plain. Here\'s a pullquote block:
', + "You can build any block you like, static or dynamic, decorative or plain. Here's a pullquote block:
", '', '', diff --git a/test/e2e/specs/adding-blocks.test.js b/test/e2e/specs/adding-blocks.test.js index e6b74f4fd58c6..ed35a2bbd2122 100644 --- a/test/e2e/specs/adding-blocks.test.js +++ b/test/e2e/specs/adding-blocks.test.js @@ -90,7 +90,7 @@ describe( 'adding blocks', () => { // Switch to Text Mode to check HTML Output await page.click( '.edit-post-more-menu [aria-label="More"]' ); - const codeEditorButton = ( await page.$x( '//button[contains(text(), \'Code Editor\')]' ) )[ 0 ]; + const codeEditorButton = ( await page.$x( "//button[contains(text(), 'Code Editor')]" ) )[ 0 ]; await codeEditorButton.click( 'button' ); expect( await getEditedPostContent() ).toMatchSnapshot(); diff --git a/test/e2e/specs/change-detection.test.js b/test/e2e/specs/change-detection.test.js index 8db99f779d6f7..60f24b6e39ae9 100644 --- a/test/e2e/specs/change-detection.test.js +++ b/test/e2e/specs/change-detection.test.js @@ -192,7 +192,7 @@ describe( 'Change detection', () => { pressWithModifier( 'Mod', 'S' ), // Ensure save update fails and presents button. - page.waitForXPath( '//p[contains(text(), \'Updating failed\')]' ), + page.waitForXPath( "//p[contains(text(), 'Updating failed')]" ), page.waitForSelector( '.editor-post-save-draft' ), ] ); diff --git a/test/e2e/specs/managing-links.test.js b/test/e2e/specs/managing-links.test.js index 3c68fa79e9ee6..8d5f258db52dd 100644 --- a/test/e2e/specs/managing-links.test.js +++ b/test/e2e/specs/managing-links.test.js @@ -12,7 +12,7 @@ describe( 'Managing links', () => { const setFixedToolbar = async ( b ) => { await page.click( '.edit-post-more-menu button' ); - const button = ( await page.$x( '//button[contains(text(), \'Fix Toolbar to Top\')]' ) )[ 0 ]; + const button = ( await page.$x( "//button[contains(text(), 'Fix Toolbar to Top')]" ) )[ 0 ]; const buttonClassNameProperty = await button.getProperty( 'className' ); const buttonClassName = await buttonClassNameProperty.jsonValue(); const isSelected = buttonClassName.indexOf( 'is-selected' ) !== -1; diff --git a/test/e2e/specs/nux.test.js b/test/e2e/specs/nux.test.js index 1e908e4d77ae1..0fbe0b5a01b36 100644 --- a/test/e2e/specs/nux.test.js +++ b/test/e2e/specs/nux.test.js @@ -48,7 +48,7 @@ describe( 'New User Experience (NUX)', () => { const firstTipText = await page.$eval( '.nux-dot-tip', ( element ) => element.innerText ); expect( firstTipText ).toContain( 'Welcome to the wonderful world of blocks!' ); - const [ nextTipButton ] = await page.$x( '//button[contains(text(), \'See next tip\')]' ); + const [ nextTipButton ] = await page.$x( "//button[contains(text(), 'See next tip')]" ); await nextTipButton.click(); const secondTipText = await page.$eval( '.nux-dot-tip', ( element ) => element.innerText );