Skip to content

Commit

Permalink
Merge pull request #21952 from Yoast/feature/plugin-fixes
Browse files Browse the repository at this point in the history
Feature/plugin fixes
  • Loading branch information
igorschoester authored Jan 7, 2025
2 parents ab89463 + c85ba18 commit 8f2e3ad
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
10 changes: 1 addition & 9 deletions packages/js/src/components/WincherPerformanceReport.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,15 +354,7 @@ const TableExplanation = ( { isLoggedIn } ) => {
)
}
</WincherAccountLink>,
wincherLink: <WincherLink href={ wpseoAdminGlobalL10n[ "links.wincher.about" ] }>
{
sprintf(
/* translators: %s : Expands to "Wincher". */
__( "%s", "wordpress-seo" ),
"Wincher"
)
}
</WincherLink>,
wincherLink: <WincherLink href={ wpseoAdminGlobalL10n[ "links.wincher.about" ] }>Wincher</WincherLink>,
},
} )
}
Expand Down
1 change: 1 addition & 0 deletions packages/js/src/redux/reducers/editorContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function getDefaultState() {
termType: get( window, "wpseoScriptData.termType", "" ),
postStatus: get( window, "wpseoScriptData.postStatus", "" ),
isFrontPage: get( window, "wpseoScriptData.isFrontPage", "0" ) === "1",
postType: get( window, "wpseoScriptData.postType", "" ),
};
}

Expand Down
2 changes: 1 addition & 1 deletion packages/js/src/redux/selectors/editorContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function getPostOrPageString( state ) {
* @returns {boolean} Whether you're editing a product.
*/
export function getIsProduct( state ) {
return get( state, "editorContext.postTypeNameSingular" ) === "Product";
return get( state, "editorContext.postType" ) === "product";
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/integrations/admin/link-count-columns-integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,15 @@ public function add_post_columns( $columns ) {

$columns[ 'wpseo-' . self::COLUMN_LINKS ] = \sprintf(
'<span class="yoast-linked-to yoast-column-header-has-tooltip" data-tooltip-text="%1$s"><span class="screen-reader-text">%2$s</span></span>',
\esc_attr__( 'Number of outgoing internal links in this post. See "Yoast Columns" text in the help tab for more info.', 'wordpress-seo' ),
\esc_attr__( 'Number of outgoing internal links in this post.', 'wordpress-seo' ),
/* translators: Hidden accessibility text. */
\esc_html__( 'Outgoing internal links', 'wordpress-seo' )
);

if ( $this->post_link_indexing_action->get_total_unindexed() === 0 ) {
$columns[ 'wpseo-' . self::COLUMN_LINKED ] = \sprintf(
'<span class="yoast-linked-from yoast-column-header-has-tooltip" data-tooltip-text="%1$s"><span class="screen-reader-text">%2$s</span></span>',
\esc_attr__( 'Number of internal links linking to this post. See "Yoast Columns" text in the help tab for more info.', 'wordpress-seo' ),
\esc_attr__( 'Number of internal links linking to this post.', 'wordpress-seo' ),
/* translators: Hidden accessibility text. */
\esc_html__( 'Received internal links', 'wordpress-seo' )
);
Expand Down

0 comments on commit 8f2e3ad

Please sign in to comment.