Actualizacion 7.1.2

This commit is contained in:
2026-09-25 12:02:42 -06:00
parent fa60d1f364
commit 32351c9497
221 changed files with 19735 additions and 6951 deletions
@@ -144,7 +144,7 @@ class Admin {
/**
* Returns the branded menu icon (anchor badge) as SVG markup.
*
* @since 202608.2
* @since 202607.1
*
* @return string The SVG markup.
*/
@@ -193,10 +193,10 @@ class Admin {
* @return void
*/
public function checkCurrentPage() {
global $admin_page_hooks;
global $admin_page_hooks; // phpcs:ignore Squiz.NamingConventions.ValidVariableName.NotCamelCaps
$currentScreen = function_exists( 'get_current_screen' ) ? get_current_screen() : false;
if ( empty( $currentScreen->id ) || empty( $admin_page_hooks ) ) {
if ( empty( $currentScreen->id ) || empty( $admin_page_hooks ) ) { // phpcs:ignore Squiz.NamingConventions.ValidVariableName.NotCamelCaps
return;
}
@@ -222,6 +222,7 @@ class Admin {
// We don't want other plugins adding notices to our screens. Let's clear them out here.
remove_all_actions( 'admin_notices' );
remove_all_actions( 'network_admin_notices' );
remove_all_actions( 'all_admin_notices' );
$this->currentPage = $page;
@@ -327,12 +328,7 @@ class Admin {
'support' => [
// Translators: This is an action link users can click to open our support.
'label' => __( 'Support', 'table-of-contents-plus' ),
'url' => aioseoTableOfContents()->helpers->utmUrl( AIOSEO_TABLE_OF_CONTENTS_MARKETING_URL . 'plugin/table-of-contents-support', 'plugin-action-links', 'Documentation' ),
],
'docs' => [
// Translators: This is an action link users can click to open our documentation page.
'label' => __( 'Documentation', 'table-of-contents-plus' ),
'url' => aioseoTableOfContents()->helpers->utmUrl( AIOSEO_TABLE_OF_CONTENTS_MARKETING_URL . 'doc-categories/table-of-contents/', 'plugin-action-links', 'Documentation' ),
'url' => aioseoTableOfContents()->helpers->utmUrl( AIOSEO_TABLE_OF_CONTENTS_MARKETING_URL . 'contact/', 'plugin-action-links', 'Support' ),
]
];
@@ -449,7 +445,7 @@ class Admin {
);
printf(
// Translators: 1 - The plugin name ("Table of Contents Plus"), - 2 - This placeholder will be replaced with star icons, - 3 - "WordPress.org" - 4 - The plugin name ("Table of Contents Plus").
// Translators: 1 - The plugin name, 2 - Star icons, 3 - "WordPress.org", 4 - The plugin name.
esc_html__( 'Please rate %1$s %2$s on %3$s to help us spread the word. Thank you!', 'table-of-contents-plus' ),
sprintf( '<strong>%1$s</strong>', esc_html( AIOSEO_TABLE_OF_CONTENTS_PLUGIN_NAME ) ),
wp_kses_post( $link1 ),
@@ -457,13 +453,13 @@ class Admin {
);
// Stop WP Core from outputting its version number and instead add both theirs & ours.
global $wp_version;
global $wp_version; // phpcs:ignore Squiz.NamingConventions.ValidVariableName.NotCamelCaps
printf(
wp_kses_post( '<p class="alignright">%1$s</p>' ),
sprintf(
// Translators: 1 - WP Core version number, 2 - version number.
esc_html__( 'WordPress %1$s | Table of Contents Plus %2$s', 'table-of-contents-plus' ),
esc_html( $wp_version ),
esc_html( $wp_version ), // phpcs:ignore Squiz.NamingConventions.ValidVariableName.NotCamelCaps
esc_html( AIOSEO_TABLE_OF_CONTENTS_VERSION )
)
);