PluginProbe
ActivityPub / 8.0.2
ActivityPub v8.0.2
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
← All changes | includes/wp-admin/class-menu.php +3 -3 9.2.08.0.2 View file →
@@ -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.