Plugin Updates
This commit is contained in:
@@ -285,7 +285,7 @@ class WPSEO_Option_Social extends WPSEO_Option {
|
||||
return $twitter_id;
|
||||
}
|
||||
|
||||
if ( preg_match( '`^http(?:s)?://(?:www\.)?twitter\.com/(?P<handle>[A-Za-z0-9_]{1,25})/?$`', $twitter_id, $matches ) ) {
|
||||
if ( preg_match( '`^http(?:s)?://(?:www\.)?(?:twitter|x)\.com/(?P<handle>[A-Za-z0-9_]{1,25})/?$`', $twitter_id, $matches ) ) {
|
||||
return $matches['handle'];
|
||||
}
|
||||
|
||||
|
||||
@@ -44,9 +44,9 @@ class WPSEO_Sitemaps_Router {
|
||||
/**
|
||||
* Adds query variables for sitemaps.
|
||||
*
|
||||
* @param array $query_vars List of query variables to filter.
|
||||
* @param array<string> $query_vars List of query variables to filter.
|
||||
*
|
||||
* @return array Filtered query variables.
|
||||
* @return array<string> Filtered query variables.
|
||||
*/
|
||||
public function add_query_vars( $query_vars ) {
|
||||
$query_vars[] = 'sitemap';
|
||||
@@ -108,7 +108,8 @@ class WPSEO_Sitemaps_Router {
|
||||
global $wp_query;
|
||||
|
||||
$protocol = 'http://';
|
||||
if ( ! empty( $_SERVER['HTTPS'] ) && $_SERVER['HTTPS'] === 'on' ) {
|
||||
// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.MissingUnslash,WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
|
||||
if ( ! empty( $_SERVER['HTTPS'] ) && strtolower( $_SERVER['HTTPS'] ) === 'on' ) {
|
||||
$protocol = 'https://';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user