Skip to content

Commit d85609c

Browse files
committed
Merge branch 'release/28.5' into trunk
2 parents 699a3c2 + a6d41a3 commit d85609c

8 files changed

Lines changed: 73 additions & 7 deletions

File tree

admin/class-gutenberg-compatibility.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ class WPSEO_Gutenberg_Compatibility {
1515
*
1616
* @var string
1717
*/
18-
public const CURRENT_RELEASE = '23.8.0';
18+
public const CURRENT_RELEASE = '23.9.0';
1919

2020
/**
2121
* The minimally supported version of Gutenberg by the plugin.
2222
*
2323
* @var string
2424
*/
25-
public const MINIMUM_SUPPORTED = '23.8.0';
25+
public const MINIMUM_SUPPORTED = '23.9.0';
2626

2727
/**
2828
* Holds the current version.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"webpack-bundle-analyzer": "^4.9.1"
7878
},
7979
"yoast": {
80-
"pluginVersion": "28.5-RC1"
80+
"pluginVersion": "28.5-RC2"
8181
},
8282
"version": "0.0.0"
8383
}

packages/js/src/components/modals/editorModals/SocialAppearanceModal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const SocialAppearanceModal = ( props ) => {
4646
id="yoast-social-appearance-modal"
4747
shouldCloseOnClickOutside={ false }
4848
SuffixHeroIcon={ <StyledHeroIcon className="yst-text-slate-500" { ...svgAriaProps } /> }
49-
titleHelpLink={ <SocialPreviewsHelpLink /> }
49+
titleHelpLink={ useOpenGraphData ? <SocialPreviewsHelpLink /> : null }
5050
>
5151
{ useOpenGraphData &&
5252
<Fragment>
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
import { render, screen } from "../../../test-utils";
2+
import EditorModal from "../../../../src/components/modals/editorModals/EditorModal";
3+
import SocialAppearanceModal from "../../../../src/components/modals/editorModals/SocialAppearanceModal";
4+
import { noop } from "lodash";
5+
6+
/**
7+
* Mocked EditorModal container.
8+
*
9+
* Renders the modal open, without the WP data store the container normally reads from.
10+
*
11+
* @param {Object} props The props.
12+
*
13+
* @returns {JSX.Element} The element.
14+
*/
15+
const EditorModalMock = props => (
16+
<EditorModal { ...props } postTypeName="post" isOpen={ true } open={ noop } close={ noop } />
17+
);
18+
19+
jest.mock( "../../../../src/containers/EditorModal", () => EditorModalMock );
20+
21+
// The editors are Redux containers; this suite is about the modal chrome around them.
22+
jest.mock( "../../../../src/containers/FacebookEditor", () => ( {
23+
__esModule: true,
24+
"default": () => "Facebook editor",
25+
} ) );
26+
jest.mock( "../../../../src/containers/TwitterEditor", () => ( {
27+
__esModule: true,
28+
"default": () => "X editor",
29+
} ) );
30+
31+
describe( "SocialAppearanceModal", () => {
32+
beforeEach( () => {
33+
global.wpseoAdminL10n = {
34+
"shortlinks.social_previews_info": "https://example.com/social-previews",
35+
};
36+
} );
37+
38+
it( "links the modal title to the social previews page when Open Graph is enabled", () => {
39+
render( <SocialAppearanceModal useOpenGraphData={ true } useTwitterData={ true } /> );
40+
41+
const link = screen.getByRole( "link", { name: /Learn more about social previews/ } );
42+
43+
expect( link ).toHaveAttribute( "href", "https://example.com/social-previews" );
44+
} );
45+
46+
it( "still offers the help link when X appearance is disabled", () => {
47+
render( <SocialAppearanceModal useOpenGraphData={ true } useTwitterData={ false } /> );
48+
49+
expect( screen.getByRole( "link", { name: /Learn more about social previews/ } ) ).toBeInTheDocument();
50+
} );
51+
52+
it( "does not offer the help link when Open Graph is disabled", () => {
53+
// Only the X appearance editor remains, matching the metabox, which has no link in that case either.
54+
render( <SocialAppearanceModal useOpenGraphData={ false } useTwitterData={ true } /> );
55+
56+
expect( screen.getByText( "X editor" ) ).toBeInTheDocument();
57+
expect( screen.queryByRole( "link", { name: /Learn more about social previews/ } ) ).toBeNull();
58+
} );
59+
} );

packages/js/tests/components/social/SocialMetadata.test.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,11 @@ describe( "SocialMetadata", () => {
5050

5151
expect( screen.getByRole( "link", { name: /Learn more about social previews/ } ) ).toBeInTheDocument();
5252
} );
53+
54+
it( "does not offer the help link when Open Graph is disabled", () => {
55+
// Only the X appearance section remains, and that one never carries the link.
56+
render( <SocialMetadata useOpenGraphData={ false } useTwitterData={ true } /> );
57+
58+
expect( screen.queryByRole( "link", { name: /Learn more about social previews/ } ) ).toBeNull();
59+
} );
5360
} );

src/myyoast-client/infrastructure/oidc/issuer-config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Issuer_Config {
4949
*
5050
* @var string
5151
*/
52-
private const SOFTWARE_STATEMENT = 'eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCIsImtpZCI6IjMwNTI3ZTlhLWZhMWYtNDhkZS05ZjIzLWUyZGE5MzY0NDE3NiJ9.eyJzb2Z0d2FyZV9pZCI6InlvYXN0L3dvcmRwcmVzcy1zZW8iLCJjbGllbnRfbmFtZSI6IllvYXN0IFNFTyIsImxvZ29fdXJpIjoiaHR0cHM6Ly95b2FzdC5jb20vYXBwL3VwbG9hZHMvMjAyNS8wOS9mcmVlX2ljb24uc3ZnIiwiY2xpZW50X3VyaSI6Imh0dHBzOi8veW9hc3QuY29tL3Byb2R1Y3QveW9hc3Qtc2VvLXdvcmRwcmVzcy8iLCJ0b3NfdXJpIjoiaHR0cHM6Ly95b2FzdC5jb20vdGVybXMtb2Ytc2VydmljZS8iLCJwb2xpY3lfdXJpIjoiaHR0cHM6Ly95b2FzdC5jb20vcHJpdmFjeS1wb2xpY3kvIiwiY29udGFjdHMiOlsic3VwcG9ydEB5b2FzdC5jb20iXSwic29mdHdhcmVfdmVyc2lvbiI6IjI4LjUtUkMxIiwiY2xlYW51cF93aGVuX2luYWN0aXZlIjp0cnVlLCJ0b2tlbl9lbmRwb2ludF9hdXRoX21ldGhvZCI6InByaXZhdGVfa2V5X2p3dCIsImlzcyI6Imh0dHBzOi8vbXkue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OjE3ODg0NDAxNTR9.P_XvSeW7sTfaNdoxWQDSew2xnTWBTu934Mp0SW4bXtkqgiVnP9ulgbS0KJyvdcbaDO5YRUW3FR_bOddKta3GAw';
5353

5454
/**
5555
* Initial access token for Dynamic Client Registration.

wp-seo-main.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* {@internal Nobody should be able to overrule the real version number as this can cause
1616
* serious issues with the options, so no if ( ! defined() ).}}
1717
*/
18-
define( 'WPSEO_VERSION', '28.5-RC1' );
18+
define( 'WPSEO_VERSION', '28.5-RC2' );
1919

2020

2121
if ( ! defined( 'WPSEO_PATH' ) ) {

wp-seo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* @wordpress-plugin
1010
* Plugin Name: Yoast SEO
11-
* Version: 28.5-RC1
11+
* Version: 28.5-RC2
1212
* Plugin URI: https://yoa.st/1uj
1313
* Description: The first true all-in-one SEO solution for WordPress, including on-page content analysis, XML sitemaps and much more.
1414
* Author: Team Yoast

0 commit comments

Comments
 (0)