PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.1
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.1
16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 All 504 releases
← All changes | modules/theme-tools/site-logo.php +7 -3 13.9.216.3-a.1 View file →
@@ -19,8 +19,12 @@
19 19 *
20 20 * @package automattic/jetpack
21 21 */
22 22
23 +if ( ! defined( 'ABSPATH' ) ) {
24 + exit( 0 );
25 +}
26 +
23 27 /**
24 28 * Activate the Site Logo plugin.
25 29 *
26 30 * @uses current_theme_supports()
@@ -70,13 +74,13 @@
70 74 * and the updated Jetpack site-logo feature.
71 75 *
72 76 * @since 9.9.0
73 77 *
74 - * @param int|array $site_logo Option.
75 - * @return int
78 + * @param int|array|WP_Error $site_logo Option.
79 + * @return int|WP_Error
76 80 */
77 81 function jetpack_site_logo_block_compat( $site_logo ) {
78 - if ( isset( $site_logo['id'] ) ) {
82 + if ( is_array( $site_logo ) && isset( $site_logo['id'] ) ) {
79 83 remove_filter( 'option_site_logo', 'jetpack_site_logo_block_compat', 1 );
80 84 update_option( 'site_logo', $site_logo['id'] );
81 85 return $site_logo['id'];
82 86 }