Skip to content

Commit

Permalink
Merge branch 'trunk' into add/boost/e2e-tests-image-cdn
Browse files Browse the repository at this point in the history
  • Loading branch information
dilirity committed Apr 3, 2024
2 parents 8f732f3 + de395b0 commit 446cafc
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fixed
Comment: Fix a unit test for changed output in WordPress 6.5. No change to functionality.


Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function test_comment_text_block_sanitization_sanity_check() {
$comment_content = '<!-- wp:paragraph --><p>test</p><!-- /wp:paragraph --><!-- wp:list --><ul><!-- wp:list-item --><li>1</li><!-- /wp:list-item --><!-- wp:list-item --><li>2</li><!-- /wp:list-item --><!-- wp:list-item --><li>3</li><!-- /wp:list-item --></ul><!-- /wp:list --><!-- wp:quote --><blockquote class="wp-block-quote"><!-- wp:paragraph --><p>something</p><!-- /wp:paragraph --><cite>someone</cite></blockquote><!-- /wp:quote -->';
$filtered_content = preg_replace( '/\R+/', '', Verbum_Block_Utils::render_verbum_blocks( $comment_content ) );

$expected_content = '<p>test</p><ul><li>1</li><li>2</li><li>3</li></ul><blockquote class="wp-block-quote"><p>something</p><cite>someone</cite></blockquote>';
$expected_content = '<p>test</p><ul><li>1</li><li>2</li><li>3</li></ul><blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>something</p><cite>someone</cite></blockquote>';
$this->assertEquals( $expected_content, $filtered_content );
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: other

Sharing block: make sharing options translatable
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ export const variations = [
},
{
name: 'print',
attributes: { service: 'print', label: 'Print' },
title: 'Print',
attributes: {
service: 'print',
// translators: option to print the content - a verb.
label: __( 'Print', 'jetpack' ),
},
// translators: option to print the content - a verb labelling a button.
title: __( 'Print', 'jetpack' ),
icon: <SocialIcon icon={ 'print' } size={ 24 } />,
},
{
Expand All @@ -29,8 +34,13 @@ export const variations = [
},
{
name: 'mail',
attributes: { service: 'mail', label: 'Mail' },
title: 'Mail',
attributes: {
service: 'mail',
// translators: option to share the content by email - a verb.
label: __( 'Mail', 'jetpack' ),
},
// translators: option to share the content by email - a verb labelling a button.
title: __( 'Mail', 'jetpack' ),
keywords: [ 'email', 'e-mail' ],
icon: <SocialIcon icon={ 'mail' } size={ 24 } />,
},
Expand Down Expand Up @@ -104,8 +114,12 @@ export const variations = [
},
{
name: 'native-share',
attributes: { service: 'share', label: 'Share' },
/* translators: Sharing Button title */
attributes: {
service: 'share',
// translators: option to share the content - a verb.
label: __( 'Share', 'jetpack' ),
},
// translators: option to share the content - a verb labelling a button.
title: __( 'Native Share', 'jetpack' ),
icon: <SocialIcon icon={ 'share' } size={ 24 } />,
//TODO: we can add link in the future to proper documentation
Expand Down

0 comments on commit 446cafc

Please sign in to comment.