Skip to content

Commit

Permalink
Merge branch 'trunk' into scores-in-sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenleenders committed Jun 8, 2020
2 parents 202cb3e + ee8c219 commit 797dea5
Show file tree
Hide file tree
Showing 20 changed files with 90 additions and 94 deletions.
2 changes: 0 additions & 2 deletions admin/class-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,6 @@ public function enqueue_global_style() {
*
* These are used with the Facebook author, rel="author" and Twitter cards implementation.
*
* @link https://developers.google.com/search/docs/data-types/social-profile
*
* @param array $contactmethods Currently set contactmethods.
*
* @return array $contactmethods with added contactmethods.
Expand Down
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 = '8.1.0';
const CURRENT_RELEASE = '8.2.1';

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

/**
* Holds the current version.
Expand Down
4 changes: 2 additions & 2 deletions css/src/admin-global.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 15 additions & 15 deletions css/src/icons.css

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions css/src/metabox.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/src/notifications.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions css/src/yoast-extensions.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/src/yst_plugin_tools.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions deprecated/frontend/class-opengraph.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function og_tag( $property, $content ) {
/**
* Outputs the site owner.
*
* @link https://developers.facebook.com/docs/reference/opengraph/object-type/article/
* @link https://ogp.me/#type_article
*
* @return void
*
Expand Down Expand Up @@ -95,7 +95,7 @@ public function image_output( $image = false ) {
* @deprecated 14.0
* @codeCoverageIgnore
*
* @link https://developers.facebook.com/docs/reference/opengraph/object-type/article/
* @link https://ogp.me/#type_article
*
* @return boolean
*/
Expand All @@ -111,7 +111,7 @@ public function url() {
* @deprecated 14.0
* @codeCoverageIgnore
*
* @link https://developers.facebook.com/docs/reference/opengraph/object-type/article/
* @link https://ogp.me/#type_article
*
* @param bool $echo Whether or not to echo the output.
*
Expand Down Expand Up @@ -146,7 +146,7 @@ public function description( $echo = true ) {
* @codeCoverageIgnore
*
* @link https://developers.facebook.com/blog/post/2013/06/19/platform-updates--new-open-graph-tags-for-media-publishers-and-more/
* @link https://developers.facebook.com/docs/reference/opengraph/object-type/article/
* @link https://ogp.me/#type_article
*
* @return boolean
*/
Expand All @@ -163,7 +163,7 @@ public function article_author_facebook() {
* @codeCoverageIgnore
*
* @link https://developers.facebook.com/blog/post/2013/06/19/platform-updates--new-open-graph-tags-for-media-publishers-and-more/
* @link https://developers.facebook.com/docs/reference/opengraph/object-type/article/
* @link https://ogp.me/#type_article
*
* @return boolean
*/
Expand Down Expand Up @@ -197,8 +197,8 @@ public function type( $echo = true ) {
* @deprecated 14.0
* @codeCoverageIgnore
*
* @link http://www.facebook.com/translations/FacebookLocales.xml for the list of supported locales.
* @link https://developers.facebook.com/docs/reference/opengraph/object-type/article/
* @link https://developers.facebook.com/docs/internationalization/#locales for the list of supported locales.
* @link https://ogp.me/#type_article
*
* @param bool $echo Whether to echo or return the locale.
*
Expand Down Expand Up @@ -244,7 +244,7 @@ public function site_name() {
* @deprecated 14.0
* @codeCoverageIgnore
*
* @link https://developers.facebook.com/docs/reference/opengraph/object-type/article/
* @link https://ogp.me/#type_article
*
* @return boolean;
*/
Expand Down Expand Up @@ -286,7 +286,7 @@ public function app_id() {
* @deprecated 14.0
* @codeCoverageIgnore
*
* @link https://developers.facebook.com/docs/reference/opengraph/object-type/article/
* @link https://ogp.me/#type_article
*
* @return boolean
*/
Expand All @@ -302,7 +302,7 @@ public function tags() {
* @deprecated 14.0
* @codeCoverageIgnore
*
* @link https://developers.facebook.com/docs/reference/opengraph/object-type/article/
* @link https://ogp.me/#type_article
*
* @return boolean;
*/
Expand Down
1 change: 0 additions & 1 deletion inc/options/class-wpseo-option-social.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ protected function validate_option( $dirty, $clean, $old ) {
* with the exception of underscores.
*
* @link https://support.twitter.com/articles/101299-why-can-t-i-register-certain-usernames
* @link https://dev.twitter.com/docs/platform-objects/users
*/
if ( preg_match( '`^[A-Za-z0-9_]{1,25}$`', $twitter_id ) ) {
$clean[ $key ] = $twitter_id;
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@
},
"dependencies": {
"@babel/runtime": "7.0.0-beta.55",
"@yoast/analysis-report": "^1.4.0",
"@yoast/components": "^2.2.0",
"@yoast/configuration-wizard": "^2.4.0",
"@yoast/analysis-report": "^1.5.0-rc.0",
"@yoast/components": "^2.3.0-rc.0",
"@yoast/configuration-wizard": "^2.5.0-rc.0",
"@yoast/helpers": "^0.12.1",
"@yoast/search-metadata-previews": "^2.5.0-rc.0",
"@yoast/search-metadata-previews": "^2.5.0-rc.1",
"@yoast/style-guide": "^0.11.2",
"a11y-speak": "git+https://github.com/Yoast/a11y-speak.git#master",
"babel-polyfill": "^6.26.0",
Expand All @@ -131,13 +131,13 @@
"redux-thunk": "^2.2.0",
"select2": "^4.0.5",
"styled-components": "^4.2.0",
"yoast-components": "^5.5.0-rc.0",
"yoast-components": "^5.5.0-rc.1",
"yoastseo": "^1.76.0-rc.0"
},
"browserslist": [
"extends @yoast/browserslist-config"
],
"yoast": {
"pluginVersion": "14.3-RC1"
"pluginVersion": "14.3-RC2"
}
}
4 changes: 3 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ Release Date: June 9th, 2020

Bugfixes:

* Fixes a bug where the filters `wpseo_metadesc` and `wpseo_title` weren't called with the right argument, which could lead to errors. [#15288](https://github.com/Yoast/wordpress-seo/pull/15288)
* Fixes a bug where the FAQ schema list item's position would start at 0 instead of 1.
* Fixes a bug where the filters `wpseo_metadesc` and `wpseo_title` weren't called with the right argument, which could lead to errors.
* Fixes a bug where our global CSS variables could conflict with global CSS variables of themes.

= 14.2 =
Release Date: May 26th, 2020
Expand Down
5 changes: 3 additions & 2 deletions src/generators/schema/faq.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ public function generate() {
if ( ! isset( $question['jsonAnswer'] ) || empty( $question['jsonAnswer'] ) ) {
continue;
}
$ids[] = [ '@id' => $this->context->canonical . '#' . \esc_attr( $question['id'] ) ];
$graph[] = $this->generate_question_block( $question, $index );
$ids[] = [ '@id' => $this->context->canonical . '#' . \esc_attr( $question['id'] ) ];
// Index + 1 below so we start at 1 and count from there.
$graph[] = $this->generate_question_block( $question, ( $index + 1 ) );
++$number_of_items;
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/generators/schema/organization.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ public function generate() {
/**
* Retrieve the social profiles to display in the organization schema.
*
* @link https://developers.google.com/webmasters/structured-data/customize/social-profiles
*
* @return array $profiles An array of social profiles.
*/
private function fetch_social_profiles() {
Expand Down
4 changes: 1 addition & 3 deletions src/generators/schema/website.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ public function is_needed() {
* Outputs code to allow recognition of the internal search engine.
*
* @return array Website data blob.
*
* @link https://developers.google.com/structured-data/site-name
*/
public function generate() {
$data = [
Expand Down Expand Up @@ -69,7 +67,7 @@ private function add_alternate_name( $data ) {
/**
* Adds the internal search JSON LD code to the homepage if it's not disabled.
*
* @link https://developers.google.com/structured-data/slsb-overview
* @link https://developers.google.com/search/docs/data-types/sitelinks-searchbox
*
* @param array $data The website data array.
*
Expand Down
4 changes: 2 additions & 2 deletions tests/generators/schema-generator-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ public function test_generate_with_block_not_having_generated_output() {
[
'@type' => 'Question',
'@id' => '#id-1',
'position' => 0,
'position' => 1,
'url' => '#id-1',
'name' => 'This is a question',
'answerCount' => 1,
Expand Down Expand Up @@ -406,7 +406,7 @@ public function get_expected_schema() {
[
'@type' => 'Question',
'@id' => '#id-1',
'position' => 0,
'position' => 1,
'url' => '#id-1',
'name' => 'This is a question',
'answerCount' => 1,
Expand Down
6 changes: 3 additions & 3 deletions tests/generators/schema/faq-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function test_generate() {
[
'@id' => 'https://example.org/page/#id-1',
'@type' => 'Question',
'position' => 0,
'position' => 1,
'url' => 'https://example.org/page/#id-1',
'name' => 'This is a question',
'answerCount' => 1,
Expand All @@ -138,7 +138,7 @@ public function test_generate() {
[
'@id' => 'https://example.org/page/#id-2',
'@type' => 'Question',
'position' => 1,
'position' => 2,
'url' => 'https://example.org/page/#id-2',
'name' => 'This is the second question',
'answerCount' => 1,
Expand Down Expand Up @@ -220,7 +220,7 @@ public function test_generate_does_not_output_questions_with_no_answer() {
[
'@id' => 'https://example.org/page/#id-1',
'@type' => 'Question',
'position' => 0,
'position' => 1,
'url' => 'https://example.org/page/#id-1',
'name' => 'This is a question',
'answerCount' => 1,
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', '14.3-RC1' );
define( 'WPSEO_VERSION', '14.3-RC2' );


if ( ! defined( 'WPSEO_PATH' ) ) {
Expand Down
2 changes: 1 addition & 1 deletion 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: 14.3-RC1
* Version: 14.3-RC2
* 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 Down
Loading

0 comments on commit 797dea5

Please sign in to comment.