PluginProbe
ActivityPub / 3.2.2
ActivityPub v3.2.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/rest/class-nodeinfo.php +4 -3 2.1.13.2.2 View file →
@@ -5,8 +5,9 @@
5 5
6 6 use function Activitypub\get_total_users;
7 7 use function Activitypub\get_active_users;
8 8 use function Activitypub\get_rest_url_by_path;
9 +use function Activitypub\get_masked_wp_version;
9 10
10 11 /**
11 12 * ActivityPub NodeInfo REST-Class
12 13 *
@@ -80,9 +81,9 @@
80 81
81 82 $nodeinfo['version'] = '2.0';
82 83 $nodeinfo['software'] = array(
83 84 'name' => 'wordpress',
84 - 'version' => \get_bloginfo( 'version' ),
85 + 'version' => get_masked_wp_version(),
85 86 );
86 87
87 88 $posts = \wp_count_posts();
88 89 $comments = \wp_count_comments();
@@ -128,14 +129,14 @@
128 129 \do_action( 'activitypub_rest_nodeinfo2_pre' );
129 130
130 131 $nodeinfo = array();
131 132
132 - $nodeinfo['version'] = '1.0';
133 + $nodeinfo['version'] = '2.0';
133 134 $nodeinfo['server'] = array(
134 135 'baseUrl' => \home_url( '/' ),
135 136 'name' => \get_bloginfo( 'name' ),
136 137 'software' => 'wordpress',
137 - 'version' => \get_bloginfo( 'version' ),
138 + 'version' => get_masked_wp_version(),
138 139 );
139 140
140 141 $posts = \wp_count_posts();
141 142 $comments = \wp_count_comments();