diff --git a/src/wp-includes/sitemaps/class-wp-sitemaps-registry.php b/src/wp-includes/sitemaps/class-wp-sitemaps-registry.php
index 5cb2e2fa45..6edf1dfe5c 100644
|
a
|
b
|
class WP_Sitemaps_Registry { |
| 65 | 65 | * @return WP_Sitemaps_Provider|null Sitemap provider if it exists, null otherwise. |
| 66 | 66 | */ |
| 67 | 67 | public function get_provider( $name ) { |
| 68 | | if ( ! isset( $this->providers[ $name ] ) ) { |
| | 68 | if ( ! is_string( $name ) || ! isset( $this->providers[ $name ] ) ) { |
| 69 | 69 | return null; |
| 70 | 70 | } |
| 71 | 71 | |
diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php
index 698a0699cc..f1433b20bc 100644
|
a
|
b
|
function get_taxonomy( $taxonomy ) { |
| 337 | 337 | function taxonomy_exists( $taxonomy ) { |
| 338 | 338 | global $wp_taxonomies; |
| 339 | 339 | |
| 340 | | return isset( $wp_taxonomies[ $taxonomy ] ); |
| | 340 | return is_string( $taxonomy ) && isset( $wp_taxonomies[ $taxonomy ] ); |
| 341 | 341 | } |
| 342 | 342 | |
| 343 | 343 | /** |