| @@ -38,9 +38,9 @@ | ||
| 38 | 38 | \add_action( 'load-users.php', array( Settings::class, 'add_users_help_tab' ) ); |
| 39 | 39 | \add_action( 'load-' . $settings_page, array( Admin::class, 'add_settings_list_tables' ) ); |
| 40 | 40 | \add_action( 'load-' . $settings_page, array( Screen_Options::class, 'add_settings_list_options' ) ); |
| 41 | 41 | |
| 42 | - if ( \get_option( 'activitypub_reader_ui', '0' ) && App::is_supported() ) { | |
| 42 | + if ( \get_option( 'activitypub_reader_ui', '0' ) && \version_compare( \get_bloginfo( 'version' ), '6.9-alpha', '>=' ) ) { | |
| 43 | 43 | $app_hook = \add_dashboard_page( |
| 44 | 44 | \__( 'Social Web', 'activitypub' ), |
| 45 | 45 | \__( 'Social Web', 'activitypub' ), |
| 46 | 46 | ACTIVITYPUB_BLOG_MODE === \get_option( 'activitypub_actor_mode' ) ? 'manage_options' : 'activitypub', |
| @@ -105,10 +105,10 @@ | ||
| 105 | 105 | * |
| 106 | 106 | * @param \WP_Admin_Bar $wp_admin_bar The WP_Admin_Bar instance. |
| 107 | 107 | */ |
| 108 | 108 | public static function admin_bar_menu( $wp_admin_bar ) { |
| 109 | - // Only show if reader UI is enabled and the WordPress app boot stack is available. | |
| 110 | - if ( ! \get_option( 'activitypub_reader_ui', '0' ) || ! App::is_supported() ) { | |
| 109 | + // Only show if reader UI is enabled and WordPress version supports it. | |
| 110 | + if ( ! \get_option( 'activitypub_reader_ui', '0' ) || \version_compare( \get_bloginfo( 'version' ), '6.9-alpha', '<' ) ) { | |
| 111 | 111 | return; |
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | // Check user capability based on actor mode. |