← All changes
|
jetpack_vendor/automattic/jetpack-publicize/src/class-publicize-utils.php
+2
-1
16.2
→
16.3-beta
View file →
| @@ -31,9 +31,10 @@ | ||
| 31 | 31 | */ |
| 32 | 32 | public static function is_jetpack_settings_page() { |
| 33 | 33 | $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : null; |
| 34 | 34 | |
| 35 | - return ! empty( $screen ) && 'toplevel_page_jetpack' === $screen->base; | |
| 35 | + // Older Jetpack plugins still render Settings at page=jetpack. | |
| 36 | + return ! empty( $screen ) && in_array( $screen->base, array( 'jetpack_page_jetpack-settings', 'toplevel_page_jetpack' ), true ); | |
| 36 | 37 | } |
| 37 | 38 | |
| 38 | 39 | /** |
| 39 | 40 | * Whether the block editor should have the social features. |