Make WordPress Core

Ticket #64483: 64483.patch

File 64483.patch, 3.0 KB (added by solankisoftware, 4 weeks ago)

Fixed : Core Abilities getting error when execution

  • wp-includes/abilities.php

     
    138138                        'label'               => __( 'Get User Information' ),
    139139                        'description'         => __( 'Returns basic profile details for the current authenticated user to support personalization, auditing, and access-aware behavior.' ),
    140140                        'category'            => $category_user,
     141                        'input_schema'        => array(
     142                                'type'                 => 'object',
     143                                'additionalProperties' => false,
     144                                'default'              => array(),
     145                        ),
    141146                        'output_schema'       => array(
    142147                                'type'                 => 'object',
    143148                                'required'             => array( 'id', 'display_name', 'user_nicename', 'user_login', 'roles', 'locale' ),
     
    204209                        'label'               => __( 'Get Environment Info' ),
    205210                        'description'         => __( 'Returns core details about the site\'s runtime context for diagnostics and compatibility (environment, PHP runtime, database server info, WordPress version).' ),
    206211                        'category'            => $category_site,
     212                        'input_schema'        => array(
     213                                'type'                 => 'object',
     214                                'additionalProperties' => false,
     215                                'default'              => array(),
     216                        ),
    207217                        'output_schema'       => array(
    208218                                'type'                 => 'object',
    209219                                'required'             => array( 'environment', 'php_version', 'db_server_info', 'wp_version' ),