You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Tools/ErrorLogTools.php
-4Lines changed: 0 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -23,10 +23,6 @@ trait ErrorLogTools {
23
23
* @return void
24
24
*/
25
25
privatefunctionadd_error_log_abilities() {
26
-
$this->add_ability( self::INTERNAL_PREFIX . 'get-error-log-path', 'Get Error Log Path', 'Get the WordPress debug log path used by this site', $this->schema(), function () {
assert_same( array( 'page' ), array_column( $public_hierarchical_post_types['message']['post_types'], 'slug' ), 'Post type list should pass filters through to get_post_types().' );
assert_same( 56, count( $wp_ability_names ), 'Expected all abilities to be available for the MCP adapter.' );
298
+
assert_same( 55, count( $wp_ability_names ), 'Expected all abilities to be available for the MCP adapter.' );
300
299
assert_true( in_array( 'wp-forge/search-content', $wp_ability_names, true ), 'Adapter ability list should use WordPress ability names.' );
301
300
302
301
$abilities->register_wordpress_abilities();
303
-
assert_same( 56, count( $registered_abilities ), 'Expected every ability to be registered with the WordPress Abilities API.' );
302
+
assert_same( 55, count( $registered_abilities ), 'Expected every ability to be registered with the WordPress Abilities API.' );
304
303
assert_true( isset( $registered_abilities['wp-forge/search-content'] ), 'Content search should be registered with the WordPress Abilities API.' );
305
304
assert_same( 'Search and filter content for any registered post type', $registered_abilities['wp-forge/search-content']['description'], 'Registered ability should preserve descriptions.' );
306
305
assert_same( true, $registered_abilities['wp-forge/search-content']['meta']['show_in_rest'], 'Registered abilities should be exposed through the Abilities REST API.' );
@@ -331,7 +330,7 @@ public function create_server() {
331
330
assert_same( 'mcp', $adapter->args[1], 'Adapter server should keep the existing REST namespace.' );
332
331
assert_same( 'wp-forge', $adapter->args[2], 'Adapter server should keep the existing REST route.' );
333
332
assert_same( 'WordPress MCP', $adapter->args[3], 'Adapter server should preserve the server name.' );
334
-
assert_same( 56, count( $adapter->args[9] ), 'Adapter server should expose every registered ability.' );
333
+
assert_same( 55, count( $adapter->args[9] ), 'Adapter server should expose every registered ability.' );
335
334
assert_true( in_array( 'wp-forge/search-content', $adapter->args[9], true ), 'Adapter server should expose content search.' );
0 commit comments