Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/trunk' into feature/html-parser
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola committed Jun 17, 2023
2 parents 200f811 + c503f67 commit ab7f844
Show file tree
Hide file tree
Showing 13 changed files with 48 additions and 22 deletions.
4 changes: 2 additions & 2 deletions admin/class-gutenberg-compatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ class WPSEO_Gutenberg_Compatibility {
*
* @var string
*/
const CURRENT_RELEASE = '15.9.1';
const CURRENT_RELEASE = '16.0.0';

/**
* The minimally supported version of Gutenberg by the plugin.
*
* @var string
*/
const MINIMUM_SUPPORTED = '15.9.1';
const MINIMUM_SUPPORTED = '16.0.0';

/**
* Holds the current version.
Expand Down
9 changes: 5 additions & 4 deletions admin/watchers/class-slug-change-watcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,19 +90,20 @@ public function detect_post_delete( $post_id ) {
/**
* Shows a message when a term is about to get deleted.
*
* @param int $term_id The term ID that will be deleted.
* @param int $term_taxonomy_id The term taxonomy ID that will be deleted.
*
* @return void
*/
public function detect_term_delete( $term_id ) {
if ( ! $this->is_term_viewable( $term_id ) ) {
public function detect_term_delete( $term_taxonomy_id ) {
if ( ! $this->is_term_viewable( $term_taxonomy_id ) ) {
return;
}
$term = \get_term_by( 'term_taxonomy_id', (int) $term_taxonomy_id );

$first_sentence = sprintf(
/* translators: 1: term label */
__( 'You just deleted a %1$s.', 'wordpress-seo' ),
$this->get_taxonomy_label_for_term( $term_id )
$this->get_taxonomy_label_for_term( $term->term_id )
);

$message = $this->get_message( $first_sentence );
Expand Down
2 changes: 1 addition & 1 deletion css/src/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

/* Override aggressive WordPress inputs styling */
.yst-input {
@apply yst-py-2 yst-px-3 yst-border yst-bg-white yst-rounded-md yst-shadow-sm yst-text-sm yst-placeholder-gray-400 !important;
@apply yst-py-2 yst-px-3 yst-border yst-bg-white yst-rounded-md yst-shadow-sm yst-text-sm !important;
}

.yst-radio {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"typescript": "^4.2.4"
},
"yoast": {
"pluginVersion": "20.10-RC1"
"pluginVersion": "20.10-RC3"
},
"version": "0.0.0"
}
14 changes: 12 additions & 2 deletions packages/js/src/components/WincherPerformanceReport.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,15 @@ WincherSEOPerformanceTable.propTypes = {
children: PropTypes.any,
};

/**
* Checks whether Wincher performance data has results.
*
* @param {Object} data the Wincher performance data.
*
* @returns {boolean} Whether Wincher performance data has results.
*/
const checkHasResults = ( data ) => data && ! isEmpty( data ) && ! isEmpty( data.results );

/**
* The Dashboard Wincher SEO Performance component.
*
Expand All @@ -455,16 +464,17 @@ const WincherPerformanceReport = ( props ) => {
const { className, websiteId, isLoggedIn, onConnectAction, isConnectSuccess } = props;
const data = isLoggedIn ? props.data : fakeWincherPerformanceData;
const isBlurred = ! isLoggedIn;
const hasResults = checkHasResults( data );

return (
<WicnherSEOPerformanceContainer
className={ className }
>
<WincherUpgradeCallout isTitleShortened={ true } />
{ isLoggedIn && <WincherUpgradeCallout isTitleShortened={ true } /> }

<GetUserMessage { ...props } data={ data } isConnectSuccess={ isConnectSuccess && isLoggedIn } />

{ data && ! isEmpty( data ) && ! isEmpty( data.results ) && <Fragment>
{ hasResults && <Fragment>
<TableExplanation isLoggedIn={ isLoggedIn } />

<WincherSEOPerformanceTableWrapper>
Expand Down
2 changes: 1 addition & 1 deletion packages/js/src/components/WincherSEOPerformance.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export default function WincherSEOPerformance( props ) {
return (
<Wrapper>
{ isNewlyAuthenticated && <WincherConnectedAlert /> }
<WincherUpgradeCallout />
{ isLoggedIn && <WincherUpgradeCallout /> }

<Title>
{ __( "SEO performance", "wordpress-seo" ) }
Expand Down
2 changes: 1 addition & 1 deletion packages/js/src/support/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export const App = () => {
"Yoast SEO"
) }
linkHref={ githubLink }
linkText={ __( "Visit our GitHub repo", "wordpress-seo" ) }
linkText={ __( "Write a bug report", "wordpress-seo" ) }
/>
</div>
</FieldsetLayout>
Expand Down
16 changes: 16 additions & 0 deletions packages/ui-library/src/components/root/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,22 @@
visited:hover:yst-text-primary-400;
}

[type='text'],
[type='email'],
[type='url'],
[type='password'],
[type='number'],
[type='date'],
[type='datetime-local'],
[type='month'],
[type='search'],
[type='tel'],
[type='time'],
[type='week'],
textarea {
@apply yst-placeholder-slate-500;
}

svg path {
stroke-width: inherit;
}
Expand Down
3 changes: 1 addition & 2 deletions packages/ui-library/src/elements/text-input/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
yst-rounded-md
yst-shadow-sm
yst-text-sm
yst-text-slate-800
yst-placeholder-slate-500
yst-text-slate-800
yst-bg-white
focus:yst-outline-none
focus:yst-ring-primary-500
Expand Down
3 changes: 1 addition & 2 deletions packages/ui-library/src/elements/textarea/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
yst-shadow-sm
yst-bg-white
yst-text-sm
yst-text-slate-800
yst-placeholder-slate-500
yst-text-slate-800
focus:yst-outline-none
focus:yst-ring-primary-500
focus:yst-border-primary-500;
Expand Down
7 changes: 4 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,7 @@ Release date: 2023-06-27
#### Enhancements

* Adds a support page to the Yoast admin.
* Add the Wincher upgrade callout to the Wincher performance report on the dashboard.
* Add the Wincher upgrade callout to the Wincher SEO performance on the edit post page.
* Adds the Wincher upgrade callout to the Wincher performance report on the dashboard and to the Wincher SEO performance on the edit post page.
* Excludes the Yoast SEO Breadcrumbs widget from the content analysis in Elementor Pro.
* Expands the list of HTML elements excluded from the content analysis.
* Introduces a new setting for crawl optimization, that disallows AdsBot crawling when enabled.
Expand All @@ -262,8 +261,10 @@ Release date: 2023-06-27

#### Bugfixes

* Fixes a bug where deletion notice would not appear when deleting a term when the `term_id` is different from `taxonomy_term_id`.
* Fixes a bug where terms with custom canonical URLs would get added in the sitemap.
* Fixes a bug where the WordPress native sitemap would not work properly after Yoast SEO was deactivated, until rewrite rules were flushed.
* Fixes a bug where the wrong taxonomy name would appear in the notice when deleting a term.

#### Other

Expand All @@ -277,7 +278,7 @@ In Yoast SEO 20.9, you'll find improvements to our Wincher integration. We've ad

#### Enhancements

* Adds a new widget on the dasboard that shows your top keywords added to Yoast SEO with Wincher. Provides a connection button if you haven't yet connected your site to Wincher.
* Adds a new widget on the dashboard that shows your top keywords added to Yoast SEO with Wincher. Provides a connection button if you haven't yet connected your site to Wincher.
* Tightens crawl optimization site search blocking rules.
* We now automatically schedule background performance optimization processes (via WP Cron).

Expand Down
2 changes: 1 addition & 1 deletion wp-seo-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* {@internal Nobody should be able to overrule the real version number as this can cause
* serious issues with the options, so no if ( ! defined() ).}}
*/
define( 'WPSEO_VERSION', '20.10-RC1' );
define( 'WPSEO_VERSION', '20.10-RC3' );


if ( ! defined( 'WPSEO_PATH' ) ) {
Expand Down
4 changes: 2 additions & 2 deletions wp-seo.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @wordpress-plugin
* Plugin Name: Yoast SEO
* Version: 20.10-RC1
* Version: 20.10-RC3
* Plugin URI: https://yoa.st/1uj
* Description: The first true all-in-one SEO solution for WordPress, including on-page content analysis, XML sitemaps and much more.
* Author: Team Yoast
Expand All @@ -20,7 +20,7 @@
* Requires PHP: 7.2.5
*
* WC requires at least: 7.1
* WC tested up to: 7.7
* WC tested up to: 7.8
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down

0 comments on commit ab7f844

Please sign in to comment.