quest.
* @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure.
*/
public function update_item( $request ) {
$term = $this->get_term( $request['id'] );
if ( is_wp_error( $term ) ) {
return $term;
}
if ( isset( $request['parent'] ) ) {
if ( ! is_taxonomy_hierarchical( $this->taxonomy ) ) {
return new WP_Error( 'rest_taxonomy_not_hierarchical', __( 'Cannot set parent term, taxonomy is not hierarchical.' ), array( 'status' => 400 ) );
}
$parent = get_term( (int) $request['parent'], $this->taxonomy );
if ( ! $parent ) {
return new WP_Error( 'rest_term_invalid', __( 'Parent term does not exist.' ), array( 'status' => 400 ) );
}
}
$prepared_term = $this->prepare_item_for_database( $request );
// Only update the term if we have something to update.
if ( ! empty( $prepared_term ) ) {
if ( ! isset( $prepared_term->{'menu-name'} ) ) {
// wp_update_nav_menu_object() requires that the menu-name is always passed.
$prepared_term->{'menu-name'} = $term->name;
}
$update = wp_update_nav_menu_object( $term->term_id, wp_slash( (array) $prepared_term ) );
if ( is_wp_error( $update ) ) {
return $update;
}
}
$term = get_term( $term->term_id, $this->taxonomy );
/** This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php */
do_action( "rest_insert_{$this->taxonomy}", $term, $request, false );
$schema = $this->get_item_schema();
if ( ! empty( $schema['properties']['meta'] ) && isset( $request['meta'] ) ) {
$meta_update = $this->meta->update_value( $request['meta'], $term->term_id );
if ( is_wp_error( $meta_update ) ) {
return $meta_update;
}
}
$locations_update = $this->handle_locations( $term->term_id, $request );
if ( is_wp_error( $locations_update ) ) {
return $locations_update;
}
$this->handle_auto_add( $term->term_id, $request );
$fields_update = $this->update_additional_fields_for_object( $term, $request );
if ( is_wp_error( $fields_update ) ) {
return $fields_update;
}
$request->set_param( 'context', 'view' );
/** This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php */
do_action( "rest_after_insert_{$this->taxonomy}", $term, $request, false );
$response = $this->prepare_item_for_response( $term, $request );
return rest_ensure_response( $response );
}
/**
* Deletes a single term from a taxonomy.
*
* @since 5.9.0
*
* @param WP_REST_Request $request Full details about the request.
* @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure.
*/
public function delete_item( $request ) {
$term = $this->get_term( $request['id'] );
if ( is_wp_error( $term ) ) {
return $term;
}
// We don't support trashing for terms.
if ( ! $request['force'] ) {
/* translators: %s: force=true */
return new WP_Error( 'rest_trash_not_supported', sprintf( __( "Menus do not support trashing. Set '%s' to delete." ), 'force=true' ), array( 'status' => 501 ) );
}
$request->set_param( 'context', 'view' );
$previous = $this->prepare_item_for_response( $term, $request );
$result = wp_delete_nav_menu( $term );
if ( ! $result || is_wp_error( $result ) ) {
return new WP_Error( 'rest_cannot_delete', __( 'The menu cannot be deleted.' ), array( 'status' => 500 ) );
}
$response = new WP_REST_Response();
$response->set_data(
array(
'deleted' => true,
'previous' => $previous->get_data(),
)
);
/** This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php */
do_action( "rest_delete_{$this->taxonomy}", $term, $response, $request );
return $response;
}
/**
* Returns the value of a menu's auto_add setting.
*
* @since 5.9.0
*
* @param int $menu_id The menu id to query.
* @return bool The value of auto_add.
*/
protected function get_menu_auto_add( $menu_id ) {
$nav_menu_option = (array) get_option( 'nav_menu_options', array( 'auto_add' => array() ) );
return in_array( $menu_id, $nav_menu_option['auto_add'], true );
}
/**
* Updates the menu's auto add from a REST request.
*
* @since 5.9.0
*
* @param int $menu_id The menu id to update.
* @param WP_REST_Request $request Full details about the request.
* @return bool True if the auto add setting was successfully updated.
*/
protected function handle_auto_add( $menu_id, $request ) {
if ( ! isset( $request['auto_add'] ) ) {
return true;
}
$nav_menu_option = (array) get_option( 'nav_menu_options', array( 'auto_add' => array() ) );
if ( ! isset( $nav_menu_option['auto_add'] ) ) {
$nav_menu_option['auto_add'] = array();
}
$auto_add = $request['auto_add'];
$i = array_search( $menu_id, $nav_menu_option['auto_add'], true );
if ( $auto_add && false === $i ) {
$nav_menu_option['auto_add'][] = $menu_id;
} elseif ( ! $auto_add && false !== $i ) {
array_splice( $nav_menu_option['auto_add'], $i, 1 );
}
$update = update_option( 'nav_menu_options', $nav_menu_option );
/** This action is documented in wp-includes/nav-menu.php */
do_action( 'wp_update_nav_menu', $menu_id );
return $update;
}
/**
* Returns the names of the locations assigned to the menu.
*
* @since 5.9.0
*
* @param int $menu_id The menu id.
* @return string[] The locations assigned to the menu.
*/
protected function get_menu_locations( $menu_id ) {
$locations = get_nav_menu_locations();
$menu_locations = array();
foreach ( $locations as $location => $assigned_menu_id ) {
if ( $menu_id === $assigned_menu_id ) {
$menu_locations[] = $location;
}
}
return $menu_locations;
}
/**
* Updates the menu's locations from a REST request.
*
* @since 5.9.0
*
* @param int $menu_id The menu id to update.
* @param WP_REST_Request $request Full details about the request.
* @return true|WP_Error True on success, a WP_Error on an error updating any of the locations.
*/
protected function handle_locations( $menu_id, $request ) {
if ( ! isset( $request['locations'] ) ) {
return true;
}
$menu_locations = get_registered_nav_menus();
$menu_locations = array_keys( $menu_locations );
$new_locations = array();
foreach ( $request['locations'] as $location ) {
if ( ! in_array( $location, $menu_locations, true ) ) {
return new WP_Error(
'rest_invalid_menu_location',
__( 'Invalid menu location.' ),
array(
'status' => 400,
'location' => $location,
)
);
}
$new_locations[ $location ] = $menu_id;
}
$assigned_menu = get_nav_menu_locations();
foreach ( $assigned_menu as $location => $term_id ) {
if ( $term_id === $menu_id ) {
unset( $assigned_menu[ $location ] );
}
}
$new_assignments = array_merge( $assigned_menu, $new_locations );
set_theme_mod( 'nav_menu_locations', $new_assignments );
return true;
}
/**
* Retrieves the term's schema, conforming to JSON Schema.
*
* @since 5.9.0
*
* @return array Item schema data.
*/
public function get_item_schema() {
if ( $this->schema ) {
return $this->add_additional_fields_schema( $this->schema );
}
$schema = parent::get_item_schema();
unset( $schema['properties']['count'], $schema['properties']['link'], $schema['properties']['taxonomy'] );
$schema['properties']['locations'] = array(
'description' => __( 'The locations assigned to the menu.' ),
'type' => 'array',
'items' => array(
'type' => 'string',
),
'context' => array( 'view', 'edit' ),
'arg_options' => array(
'validate_callback' => static function ( $locations, $request, $param ) {
$valid = rest_validate_request_arg( $locations, $request, $param );
if ( true !== $valid ) {
return $valid;
}
$locations = rest_sanitize_request_arg( $locations, $request, $param );
foreach ( $locations as $location ) {
if ( ! array_key_exists( $location, get_registered_nav_menus() ) ) {
return new WP_Error(
'rest_invalid_menu_location',
__( 'Invalid menu location.' ),
array(
'location' => $location,
)
);
}
}
return true;
},
),
);
$schema['properties']['auto_add'] = array(
'description' => __( 'Whether to automatically add top level pages to this menu.' ),
'context' => array( 'view', 'edit' ),
'type' => 'boolean',
);
$this->schema = $schema;
return $this->add_additional_fields_schema( $this->schema );
}
}
cking/REST_Conversion_Tracking_Controller.php',
'Google\\Site_Kit\\Core\\Dashboard_Sharing\\Activity_Metrics\\Active_Consumers' => $baseDir . '/Core/Dashboard_Sharing/Activity_Metrics/Active_Consumers.php',
'Google\\Site_Kit\\Core\\Dashboard_Sharing\\Activity_Metrics\\Activity_Metrics' => $baseDir . '/Core/Dashboard_Sharing/Activity_Metrics/Activity_Metrics.php',
'Google\\Site_Kit\\Core\\Dashboard_Sharing\\Dashboard_Sharing' => $baseDir . '/Core/Dashboard_Sharing/Dashboard_Sharing.php',
'Google\\Site_Kit\\Core\\Dashboard_Sharing\\View_Only_Pointer' => $baseDir . '/Core/Dashboard_Sharing/View_Only_Pointer.php',
'Google\\Site_Kit\\Core\\Dismissals\\Dismissals' => $baseDir . '/Core/Dismissals/Dismissals.php',
'Google\\Site_Kit\\Core\\Dismissals\\Dismissed_Items' => $baseDir . '/Core/Dismissals/Dismissed_Items.php',
'Google\\Site_Kit\\Core\\Dismissals\\REST_Dismissals_Controller' => $baseDir . '/Core/Dismissals/REST_Dismissals_Controller.php',
'Google\\Site_Kit\\Core\\Expirables\\Expirable_Items' => $baseDir . '/Core/Expirables/Expirable_Items.php',
'Google\\Site_Kit\\Core\\Expirables\\Expirables' => $baseDir . '/Core/Expirables/Expirables.php',
'Google\\Site_Kit\\Core\\Expirables\\REST_Expirable_Items_Controller' => $baseDir . '/Core/Expirables/REST_Expirable_Items_Controller.php',
'Google\\Site_Kit\\Core\\Feature_Tours\\Dismissed_Tours' => $baseDir . '/Core/Feature_Tours/Dismissed_Tours.php',
'Google\\Site_Kit\\Core\\Feature_Tours\\Feature_Tours' => $baseDir . '/Core/Feature_Tours/Feature_Tours.php',
'Google\\Site_Kit\\Core\\Feature_Tours\\REST_Feature_Tours_Controller' => $baseDir . '/Core/Feature_Tours/REST_Feature_Tours_Controller.php',
'Google\\Site_Kit\\Core\\Guards\\Guard_Interface' => $baseDir . '/Core/Guards/Guard_Interface.php',
'Google\\Site_Kit\\Core\\Key_Metrics\\Key_Metrics' => $baseDir . '/Core/Key_Metrics/Key_Metrics.php',
'Google\\Site_Kit\\Core\\Key_Metrics\\Key_Metrics_Settings' => $baseDir . '/Core/Key_Metrics/Key_Metrics_Settings.php',
'Google\\Site_Kit\\Core\\Key_Metrics\\Key_Metrics_Setup_Completed_By' => $baseDir . '/Core/Key_Metrics/Key_Metrics_Setup_Completed_By.php',
'Google\\Site_Kit\\Core\\Key_Metrics\\Key_Metrics_Setup_New' => $baseDir . '/Core/Key_Metrics/Key_Metrics_Setup_New.php',
'Google\\Site_Kit\\Core\\Key_Metrics\\REST_Key_Metrics_Controller' => $baseDir . '/Core/Key_Metrics/REST_Key_Metrics_Controller.php',
'Google\\Site_Kit\\Core\\Modules\\AdSense\\Tag_Matchers' => $baseDir . '/Modules/AdSense/Tag_Matchers.php',
'Google\\Site_Kit\\Core\\Modules\\Analytics_4\\Tag_Matchers' => $baseDir . '/Modules/Analytics_4/Tag_Matchers.php',
'Google\\Site_Kit\\Core\\Modules\\Datapoint' => $baseDir . '/Core/Modules/Datapoint.php',
'Google\\Site_Kit\\Core\\Modules\\Module' => $baseDir . '/Core/Modules/Module.php',
'Google\\Site_Kit\\Core\\Modules\\Module_Registry' => $baseDir . '/Core/Modules/Module_Registry.php',
'Google\\Site_Kit\\Core\\Modules\\Module_Settings' => $baseDir . '/Core/Modules/Module_Settings.php',
'Google\\Site_Kit\\Core\\Modules\\Module_Sharing_Settings' => $baseDir . '/Core/Modules/Module_Sharing_Settings.php',
'Google\\Site_Kit\\Core\\Modules\\Module_With_Activation' => $baseDir . '/Core/Modules/Module_With_Activation.php',
'Google\\Site_Kit\\Core\\Modules\\Module_With_Assets' => $baseDir . '/Core/Modules/Module_With_Assets.php',
'Google\\Site_Kit\\Core\\Modules\\Module_With_Assets_Trait' => $baseDir . '/Core/Modules/Module_With_Assets_Trait.php',
'Google\\Site_Kit\\Core\\Modules\\Module_With_Data_Available_State' => $baseDir . '/Core/Modules/Module_With_Data_Available_State.php',
'Google\\Site_Kit\\Core\\Modules\\Module_With_Data_Available_State_Trait' => $baseDir . '/Core/Modules/Module_With_Data_Available_State_Trait.php',
'Google\\Site_Kit\\Core\\Modules\\Module_With_Deactivation' => $baseDir . '/Core/Modules/Module_With_Deactivation.php',
'Google\\Site_Kit\\Core\\Modules\\Module_With_Debug_Fields' => $baseDir . '/Core/Modules/Module_With_Debug_Fields.php',
'Google\\Site_Kit\\Core\\Modules\\Module_With_Owner' => $baseDir . '/Core/Modules/Module_With_Owner.php',
'Google\\Site_Kit\\Core\\Modules\\Module_With_Owner_Trait' => $baseDir . '/Core/Modules/Module_With_Owner_Trait.php',
'Google\\Site_Kit\\Core\\Modules\\Module_With_Persistent_Registration' => $baseDir . '/Core/Modules/Module_With_Persistent_Registration.php',
'Google\\Site_Kit\\Core\\Modules\\Module_With_Scopes' => $baseDir . '/Core/Modules/Module_With_Scopes.php',
'Google\\Site_Kit\\Core\\Modules\\Module_With_Scopes_Trait' => $baseDir . '/Core/Modules/Module_With_Scopes_Trait.php',
'Google\\Site_Kit\\Core\\Modules\\Module_With_Service_Entity' => $baseDir . '/Core/Modules/Module_With_Service_Entity.php',
'Google\\Site_Kit\\Core\\Modules\\Module_With_Settings' => $baseDir . '/Core/Modules/Module_With_Settings.php',
'Google\\Site_Kit\\Core\\Modules\\Module_With_Settings_Trait' => $baseDir . '/Core/Modules/Module_With_Settings_Trait.php',
'Google\\Site_Kit\\Core\\Modules\\Module_With_Tag' => $baseDir . '/Core/Modules/Module_With_Tag.php',
'Google\\Site_Kit\\Core\\Modules\\Module_With_Tag_Trait' => $baseDir . '/Core/Modules/Module_With_Tag_Trait.php',
'Google\\Site_Kit\\Core\\Modules\\Modules' => $baseDir . '/Core/Modules/Modules.php',
'Google\\Site_Kit\\Core\\Modules\\REST_Dashboard_Sharing_Controller' => $baseDir . '/Core/Modules/REST_Dashboard_Sharing_Controller.php',
'Google\\Site_Kit\\Core\\Modules\\REST_Modules_Controller' => $baseDir . '/Core/Modules/REST_Modules_Controller.php',
'Google\\Site_Kit\\Core\\Modules\\Tag_Manager\\Tag_Matchers' => $baseDir . '/Modules/Tag_Manager/Tag_Matchers.php',
'Google\\Site_Kit\\Core\\Modules\\Tags\\Module_AMP_Tag' => $baseDir . '/Core/Modules/Tags/Module_AMP_Tag.php',
'Google\\Site_Kit\\Core\\Modules\\Tags\\Module_Tag' => $baseDir . '/Core/Modules/Tags/Module_Tag.php',
'Google\\Site_Kit\\Core\\Modules\\Tags\\Module_Tag_Guard' => $baseDir . '/Core/Modules/Tags/Module_Tag_Guard.php',
'Google\\Site_Kit\\Core\\Modules\\Tags\\Module_Tag_Matchers' => $baseDir . '/Core/Modules/Tags/Module_Tag_Matchers.php',
'Google\\Site_Kit\\Core\\Modules\\Tags\\Module_Web_Tag' => $baseDir . '/Core/Modules/Tags/Module_Web_Tag.php',
'Google\\Site_Kit\\Core\\Nonces\\Nonces' => $baseDir . '/Core/Nonces/Nonces.php',
'Google\\Site_Kit\\Core\\Notifications\\Notification' => $baseDir . '/Core/Notifications/Notification.php',
'Google\\Site_Kit\\Core\\Notifications\\Notifications' => $baseDir . '/Core/Notifications/Notifications.php',
'Google\\Site_Kit\\Core\\Permissions\\Permissions' => $baseDir . '/Core/Permissions/Permissions.php',
'Google\\Site_Kit\\Core\\Prompts\\Dismissed_Prompts' => $baseDir . '/Core/Prompts/Dismissed_Prompts.php',
'Google\\Site_Kit\\Core\\Prompts\\Prompts' => $baseDir . '/Core/Prompts/Prompts.php',
'Google\\Site_Kit\\Core\\Prompts\\REST_Prompts_Controller' => $baseDir . '/Core/Prompts/REST_Prompts_Controller.php',
'Google\\Site_Kit\\Core\\REST_API\\Data_Request' => $baseDir . '/Core/REST_API/Data_Request.php',
'Google\\Site_Kit\\Core\\REST_API\\Exception\\Invalid_Datapoint_Exception' => $baseDir . '/Core/REST_API/Exception/Invalid_Datapoint_Exception.php',
'Google\\Site_Kit\\Core\\REST_API\\Exception\\Invalid_Param_Exception' => $baseDir . '/Core/REST_API/Exception/Invalid_Param_Exception.php',
'Google\\Site_Kit\\Core\\REST_API\\Exception\\Missing_Required_Param_Exception' => $baseDir . '/Core/REST_API/Exception/Missing_Required_Param_Exception.php',
'Google\\Site_Kit\\Core\\REST_API\\REST_Route' => $baseDir . '/Core/REST_API/REST_Route.php',
'Google\\Site_Kit\\Core\\REST_API\\REST_Routes' => $baseDir . '/Core/REST_API/REST_Routes.php',
'Google\\Site_Kit\\Core\\Site_Health\\Debug_Data' => $baseDir . '/Core/Site_Health/Debug_Data.php',
'Google\\Site_Kit\\Core\\Site_Health\\REST_Site_Health_Controller' => $baseDir . '/Core/Site_Health/REST_Site_Health_Controller.php',
'Google\\Site_Kit\\Core\\Site_Health\\Site_Health' => $baseDir . '/Core/Site_Health/Site_Health.php',
'Google\\Site_Kit\\Core\\Site_Health\\Tag_Placement' => $baseDir . '/Core/Site_Health/Tag_Placement.php',
'Google\\Site_Kit\\Core\\Storage\\Cache' => $baseDir . '/Core/Storage/Cache.php',
'Google\\Site_Kit\\Core\\Storage\\Data_Encryption' => $baseDir . '/Core/Storage/Data_Encryption.php',
'Google\\Site_Kit\\Core\\Storage\\Encrypted_Options' => $baseDir . '/Core/Storage/Encrypted_Options.php',
'Google\\Site_Kit\\Core\\Storage\\Encrypted_User_Options' => $baseDir . '/Core/Storage/Encrypted_User_Options.php',
'Google\\Site_Kit\\Core\\Storage\\Options' => $baseDir . '/Core/Storage/Options.php',
'Google\\Site_Kit\\Core\\Storage\\Options_Interface' => $baseDir . '/Core/Storage/Options_Interface.php',
'Google\\Site_Kit\\Core\\Storage\\Post_Meta' => $baseDir . '/Core/Storage/Post_Meta.php',
'Google\\Site_Kit\\Core\\Storage\\Post_Meta_Interface' => $baseDir . '/Core/Storage/Post_Meta_Interface.php',
'Google\\Site_Kit\\Core\\Storage\\Post_Meta_Setting' => $baseDir . '/Core/Storage/Post_Meta_Setting.php',
'Google\\Site_Kit\\Core\\Storage\\Setting' => $baseDir . '/Core/Storage/Setting.php',
'Google\\Site_Kit\\Core\\Storage\\Setting\\List_Setting' => $baseDir . '/Core/Storage/Setting/List_Setting.php',
'Google\\Site_Kit\\Core\\Storage\\Setting_With_Legacy_Keys_Trait' => $baseDir . '/Core/Storage/Setting_With_Legacy_Keys_Trait.php',
'Google\\Site_Kit\\Core\\Storage\\Setting_With_Owned_Keys_Interface' => $baseDir . '/Core/Storage/Setting_With_Owned_Keys_Interface.php',
'Google\\Site_Kit\\Core\\Storage\\Setting_With_Owned_Keys_Trait' => $baseDir . '/Core/Storage/Setting_With_Owned_Keys_Trait.php',
'Google\\Site_Kit\\Core\\Storage\\Setting_With_ViewOnly_Keys_Interface' => $baseDir . '/Core/Storage/Setting_With_ViewOnly_Keys_Interface.php',
'Google\\Site_Kit\\Core\\Storage\\Transients' => $baseDir . '/Core/Storage/Transients.php',
'Google\\Site_Kit\\Core\\Storage\\User_Aware_Interface' => $baseDir . '/Core/Storage/User_Aware_Interface.php',
'Google\\Site_Kit\\Core\\Storage\\User_Aware_Trait' => $baseDir . '/Core/Storage/User_Aware_Trait.php',
'Google\\Site_Kit\\Core\\Storage\\User_Options' => $baseDir . '/Core/Storage/User_Options.php',
'Google\\Site_Kit\\Core\\Storage\\User_Options_Interface' => $baseDir . '/Core/Storage/User_Options_Interface.php',
'Google\\Site_Kit\\Core\\Storage\\User_Setting' => $baseDir . '/Core/Storage/User_Setting.php',
'Google\\Site_Kit\\Core\\Storage\\User_Transients' => $baseDir . '/Core/Storage/User_Transients.php',
'Google\\Site_Kit\\Core\\Tags\\Blockable_Tag_Interface' => $baseDir . '/Core/Tags/Blockable_Tag_Interface.php',
'Google\\Site_Kit\\Core\\Tags\\GTag' => $baseDir . '/Core/Tags/GTag.php',
'Google\\Site_Kit\\Core\\Tags\\Guards\\Tag_Environment_Type_Guard' => $baseDir . '/Core/Tags/Guards/Tag_Environment_Type_Guard.php',
'Google\\Site_Kit\\Core\\Tags\\Guards\\Tag_Verify_Guard' => $baseDir . '/Core/Tags/Guards/Tag_Verify_Guard.php',
'Google\\Site_Kit\\Core\\Tags\\Guards\\WP_Query_404_Guard' => $baseDir . '/Core/Tags/Guards/WP_Query_404_Guard.php',
'Google\\Site_Kit\\Core\\Tags\\Tag' => $baseDir . '/Core/Tags/Tag.php',
'Google\\Site_Kit\\Core\\Tags\\Tag_Interface' => $baseDir . '/Core/Tags/Tag_Interface.php',
'Google\\Site_Kit\\Core\\Tags\\Tag_Matchers_Interface' => $baseDir . '/Core/Tags/Tag_Matchers_Interface.php',
'Google\\Site_Kit\\Core\\Tags\\Tag_With_DNS_Prefetch_Trait' => $baseDir . '/Core/Tags/Tag_With_DNS_Prefetch_Trait.php',
'Google\\Site_Kit\\Core\\Tags\\Tag_With_Linker_Interface' => $baseDir . '/Core/Tags/Tag_With_Linker_Interface.php',
'Google\\Site_Kit\\Core\\Tags\\Tag_With_Linker_Trait' => $baseDir . '/Core/Tags/Tag_With_Linker_Trait.php',
'Google\\Site_Kit\\Core\\Tracking\\REST_Tracking_Consent_Controller' => $baseDir . '/Core/Tracking/REST_Tracking_Consent_Controller.php',
'Google\\Site_Kit\\Core\\Tracking\\Tracking' => $baseDir . '/Core/Tracking/Tracking.php',
'Google\\Site_Kit\\Core\\Tracking\\Tracking_Consent' => $baseDir . '/Core/Tracking/Tracking_Consent.php',
'Google\\Site_Kit\\Core\\User_Input\\REST_User_Input_Controller' => $baseDir . '/Core/User_Input/REST_User_Input_Controller.php',
'Google\\Site_Kit\\Core\\User_Input\\Site_Specific_Answers' => $baseDir . '/Core/User_Input/Site_Specific_Answers.php',
'Google\\Site_Kit\\Core\\User_Input\\User_Input' => $baseDir . '/Core/User_Input/User_Input.php',
'Google\\Site_Kit\\Core\\User_Input\\User_Specific_Answers' => $baseDir . '/Core/User_Input/User_Specific_Answers.php',
'Google\\Site_Kit\\Core\\User_Surveys\\REST_User_Surveys_Controller' => $baseDir . '/Core/User_Surveys/REST_User_Surveys_Controller.php',
'Google\\Site_Kit\\Core\\User_Surveys\\Survey_Queue' => $baseDir . '/Core/User_Surveys/Survey_Queue.php',
'Google\\Site_Kit\\Core\\User_Surveys\\Survey_Timeouts' => $baseDir . '/Core/User_Surveys/Survey_Timeouts.php',
'Google\\Site_Kit\\Core\\User_Surveys\\User_Surveys' => $baseDir . '/Core/User_Surveys/User_Surveys.php',
'Google\\Site_Kit\\Core\\Util\\Activation_Flag' => $baseDir . '/Core/Util/Activation_Flag.php',
'Google\\Site_Kit\\Core\\Util\\Activation_Notice' => $baseDir . '/Core/Util/Activation_Notice.php',
'Google\\Site_Kit\\Core\\Util\\Auto_Updates' => $baseDir . '/Core/Util/Auto_Updates.php',
'Google\\Site_Kit\\Core\\Util\\BC_Functions' => $baseDir . '/Core/Util/BC_Functions.php',
'Google\\Site_Kit\\Core\\Util\\Collection_Key_Cap_Filter' => $baseDir . '/Core/Util/Collection_Key_Cap_Filter.php',
'Google\\Site_Kit\\Core\\Util\\Date' => $baseDir . '/Core/Util/Date.php',
'Google\\Site_Kit\\Core\\Util\\Developer_Plugin_Installer' => $baseDir . '/Core/Util/Developer_Plugin_Installer.php',
'Google\\Site_Kit\\Core\\Util\\Entity' => $baseDir . '/Core/Util/Entity.php',
'Google\\Site_Kit\\Core\\Util\\Entity_Factory' => $baseDir . '/Core/Util/Entity_Factory.php',
'Google\\Site_Kit\\Core\\Util\\Exit_Handler' => $baseDir . '/Core/Util/Exit_Handler.php',
'Google\\Site_Kit\\Core\\Util\\Feature_Flags' => $baseDir . '/Core/Util/Feature_Flags.php',
'Google\\Site_Kit\\Core\\Util\\Google_Icon' => $baseDir . '/Core/Util/Google_Icon.php',
'Google\\Site_Kit\\Core\\Util\\Google_URL_Matcher_Trait' => $baseDir . '/Core/Util/Google_URL_Matcher_Trait.php',
'Google\\Site_Kit\\Core\\Util\\Google_URL_Normalizer' => $baseDir . '/Core/Util/Google_URL_Normalizer.php',
'Google\\Site_Kit\\Core\\Util\\Health_Checks' => $baseDir . '/Core/Util/Health_Checks.php',
'Google\\Site_Kit\\Core\\Util\\Input' => $baseDir . '/Core/Util/Input.php',
'Google\\Site_Kit\\Core\\Util\\Method_Proxy_Trait' => $baseDir . '/Core/Util/Method_Proxy_Trait.php',
'Google\\Site_Kit\\Core\\Util\\Migrate_Legacy_Keys' => $baseDir . '/Core/Util/Migrate_Legacy_Keys.php',
'Google\\Site_Kit\\Core\\Util\\Migration_1_123_0' => $baseDir . '/Core/Util/Migration_1_123_0.php',
'Google\\Site_Kit\\Core\\Util\\Migration_1_3_0' => $baseDir . '/Core/Util/Migration_1_3_0.php',
'Google\\Site_Kit\\Core\\Util\\Migration_1_8_1' => $baseDir . '/Core/Util/Migration_1_8_1.php',
'Google\\Site_Kit\\Core\\Util\\REST_Entity_Search_Controller' => $baseDir . '/Core/Util/REST_Entity_Search_Controller.php',
'Google\\Site_Kit\\Core\\Util\\Remote_Features' => $baseDir . '/Core/Util/Remote_Features.php',
'Google\\Site_Kit\\Core\\Util\\Requires_Javascript_Trait' => $baseDir . '/Core/Util/Requires_Javascript_Trait.php',
'Google\\Site_Kit\\Core\\Util\\Reset' => $baseDir . '/Core/Util/Reset.php',
'Google\\Site_Kit\\Core\\Util\\Reset_Persistent' => $baseDir . '/Core/Util/Reset_Persistent.php',
'Google\\Site_Kit\\Core\\Util\\Sanitize' => $baseDir . '/Core/Util/Sanitize.php',
'Google\\Site_Kit\\Core\\Util\\Scopes' => $baseDir . '/Core/Util/Scopes.php',
'Google\\Site_Kit\\Core\\Util\\Sort' => $baseDir . '/Core/Util/Sort.php',
'Google\\Site_Kit\\Core\\Util\\Synthetic_WP_Query' => $baseDir . '/Core/Util/Synthetic_WP_Query.php',
'Google\\Site_Kit\\Core\\Util\\URL' => $baseDir . '/Core/Util/URL.php',
'Google\\Site_Kit\\Core\\Util\\Uninstallation' => $baseDir . '/Core/Util/Uninstallation.php',
'Google\\Site_Kit\\Core\\Util\\WP_Context_Switcher_Trait' => $baseDir . '/Core/Util/WP_Context_Switcher_Trait.php',
'Google\\Site_Kit\\Core\\Util\\WP_Query_Factory' => $baseDir . '/Core/Util/WP_Query_Factory.php',
'Google\\Site_Kit\\Core\\Validation\\Exception\\Invalid_Report_Dimensions_Exception' => $baseDir . '/Core/Validation/Exception/Invalid_Report_Dimensions_Exception.php',
'Google\\Site_Kit\\Core\\Validation\\Exception\\Invalid_Report_Metrics_Exception' => $baseDir . '/Core/Validation/Exception/Invalid_Report_Metrics_Exception.php',
'Google\\Site_Kit\\Modules\\AdSense' => $baseDir . '/Modules/AdSense.php',
'Google\\Site_Kit\\Modules\\AdSense\\AMP_Tag' => $baseDir . '/Modules/AdSense/AMP_Tag.php',
'Google\\Site_Kit\\Modules\\AdSense\\Ad_Blocking_Recovery_Tag' => $baseDir . '/Modules/AdSense/Ad_Blocking_Recovery_Tag.php',
'Google\\Site_Kit\\Modules\\AdSense\\Ad_Blocking_Recovery_Tag_Guard' => $baseDir . '/Modules/AdSense/Ad_Blocking_Recovery_Tag_Guard.php',
'Google\\Site_Kit\\Modules\\AdSense\\Ad_Blocking_Recovery_Web_Tag' => $baseDir . '/Modules/AdSense/Ad_Blocking_Recovery_Web_Tag.php',
'Google\\Site_Kit\\Modules\\AdSense\\Auto_Ad_Guard' => $baseDir . '/Modules/AdSense/Auto_Ad_Guard.php',
'Google\\Site_Kit\\Modules\\AdSense\\Settings' => $baseDir . '/Modules/AdSense/Settings.php',
'Google\\Site_Kit\\Modules\\AdSense\\Tag_Guard' => $baseDir . '/Modules/AdSense/Tag_Guard.php',
'Google\\Site_Kit\\Modules\\AdSense\\Web_Tag' => $baseDir . '/Modules/AdSense/Web_Tag.php',
'Google\\Site_Kit\\Modules\\Ads' => $baseDir . '/Modules/Ads.php',
'Google\\Site_Kit\\Modules\\Ads\\AMP_Tag' => $baseDir . '/Modules/Ads/AMP_Tag.php',
'Google\\Site_Kit\\Modules\\Ads\\Has_Tag_Guard' => $baseDir . '/Modules/Ads/Has_Tag_Guard.php',
'Google\\Site_Kit\\Modules\\Ads\\PAX_Config' => $baseDir . '/Modules/Ads/PAX_Config.php',
'Google\\Site_Kit\\Modules\\Ads\\Settings' => $baseDir . '/Modules/Ads/Settings.php',
'Google\\Site_Kit\\Modules\\Ads\\Tag_Matchers' => $baseDir . '/Modules/Ads/Tag_Matchers.php',
'Google\\Site_Kit\\Modules\\Ads\\Web_Tag' => $baseDir . '/Modules/Ads/Web_Tag.php',
'Google\\Site_Kit\\Modules\\Analytics_4' => $baseDir . '/Modules/Analytics_4.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\AMP_Tag' => $baseDir . '/Modules/Analytics_4/AMP_Tag.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\Account_Ticket' => $baseDir . '/Modules/Analytics_4/Account_Ticket.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\Advanced_Tracking' => $baseDir . '/Modules/Analytics_4/Advanced_Tracking.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\Advanced_Tracking\\AMP_Config_Injector' => $baseDir . '/Modules/Analytics_4/Advanced_Tracking/AMP_Config_Injector.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\Advanced_Tracking\\Event' => $baseDir . '/Modules/Analytics_4/Advanced_Tracking/Event.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\Advanced_Tracking\\Event_List' => $baseDir . '/Modules/Analytics_4/Advanced_Tracking/Event_List.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\Advanced_Tracking\\Event_List_Registry' => $baseDir . '/Modules/Analytics_4/Advanced_Tracking/Event_List_Registry.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\Advanced_Tracking\\Script_Injector' => $baseDir . '/Modules/Analytics_4/Advanced_Tracking/Script_Injector.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\Audience_Settings' => $baseDir . '/Modules/Analytics_4/Audience_Settings.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\Custom_Dimensions_Data_Available' => $baseDir . '/Modules/Analytics_4/Custom_Dimensions_Data_Available.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\GoogleAnalyticsAdmin\\AccountProvisioningService' => $baseDir . '/Modules/Analytics_4/GoogleAnalyticsAdmin/AccountProvisioningService.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\GoogleAnalyticsAdmin\\AccountsResource' => $baseDir . '/Modules/Analytics_4/GoogleAnalyticsAdmin/AccountsResource.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\GoogleAnalyticsAdmin\\EnhancedMeasurementSettingsModel' => $baseDir . '/Modules/Analytics_4/GoogleAnalyticsAdmin/EnhancedMeasurementSettingsModel.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\GoogleAnalyticsAdmin\\PropertiesAdSenseLinksService' => $baseDir . '/Modules/Analytics_4/GoogleAnalyticsAdmin/PropertiesAdSenseLinksService.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\GoogleAnalyticsAdmin\\PropertiesAudiencesService' => $baseDir . '/Modules/Analytics_4/GoogleAnalyticsAdmin/PropertiesAudiencesService.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\GoogleAnalyticsAdmin\\PropertiesEnhancedMeasurementResource' => $baseDir . '/Modules/Analytics_4/GoogleAnalyticsAdmin/PropertiesEnhancedMeasurementResource.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\GoogleAnalyticsAdmin\\PropertiesEnhancedMeasurementService' => $baseDir . '/Modules/Analytics_4/GoogleAnalyticsAdmin/PropertiesEnhancedMeasurementService.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\GoogleAnalyticsAdmin\\Proxy_GoogleAnalyticsAdminProvisionAccountTicketRequest' => $baseDir . '/Modules/Analytics_4/GoogleAnalyticsAdmin/Proxy_GoogleAnalyticsAdminProvisionAccountTicketRequest.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\Report' => $baseDir . '/Modules/Analytics_4/Report.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\Report\\Dimension_Filter\\Filter' => $baseDir . '/Modules/Analytics_4/Report/Dimension_Filter/Filter.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\Report\\Dimension_Filter\\In_List_Filter' => $baseDir . '/Modules/Analytics_4/Report/Dimension_Filter/In_List_Filter.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\Report\\Dimension_Filter\\String_Filter' => $baseDir . '/Modules/Analytics_4/Report/Dimension_Filter/String_Filter.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\Report\\Filters\\Between_Filter' => $baseDir . '/Modules/Analytics_4/Report/Filters/Between_Filter.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\Report\\Filters\\Numeric_Filter' => $baseDir . '/Modules/Analytics_4/Report/Filters/Numeric_Filter.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\Report\\Request' => $baseDir . '/Modules/Analytics_4/Report/Request.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\Report\\Response' => $baseDir . '/Modules/Analytics_4/Report/Response.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\Report\\Row_Trait' => $baseDir . '/Modules/Analytics_4/Report/Row_Trait.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\Resource_Data_Availability_Date' => $baseDir . '/Modules/Analytics_4/Resource_Data_Availability_Date.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\Settings' => $baseDir . '/Modules/Analytics_4/Settings.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\Synchronize_AdSenseLinked' => $baseDir . '/Modules/Analytics_4/Synchronize_AdSenseLinked.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\Synchronize_AdsLinked' => $baseDir . '/Modules/Analytics_4/Synchronize_AdsLinked.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\Synchronize_Property' => $baseDir . '/Modules/Analytics_4/Synchronize_Property.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\Tag_Guard' => $baseDir . '/Modules/Analytics_4/Tag_Guard.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\Tag_Interface' => $baseDir . '/Modules/Analytics_4/Tag_Interface.php',
'Google\\Site_Kit\\Modules\\Analytics_4\\Web_Tag' => $baseDir . '/Modules/Analytics_4/Web_Tag.php',
'Google\\Site_Kit\\Modules\\PageSpeed_Insights' => $baseDir . '/Modules/PageSpeed_Insights.php',
'Google\\Site_Kit\\Modules\\PageSpeed_Insights\\Settings' => $baseDir . '/Modules/PageSpeed_Insights/Settings.php',
'Google\\Site_Kit\\Modules\\Search_Console' => $baseDir . '/Modules/Search_Console.php',
'Google\\Site_Kit\\Modules\\Search_Console\\Settings' => $baseDir . '/Modules/Search_Console/Settings.php',
'Google\\Site_Kit\\Modules\\Site_Verification' => $baseDir . '/Modules/Site_Verification.php',
'Google\\Site_Kit\\Modules\\Tag_Manager' => $baseDir . '/Modules/Tag_Manager.php',
'Google\\Site_Kit\\Modules\\Tag_Manager\\AMP_Tag' => $baseDir . '/Modules/Tag_Manager/AMP_Tag.php',
'Google\\Site_Kit\\Modules\\Tag_Manager\\Settings' => $baseDir . '/Modules/Tag_Manager/Settings.php',
'Google\\Site_Kit\\Modules\\Tag_Manager\\Tag_Guard' => $baseDir . '/Modules/Tag_Manager/Tag_Guard.php',
'Google\\Site_Kit\\Modules\\Tag_Manager\\Web_Tag' => $baseDir . '/Modules/Tag_Manager/Web_Tag.php',
'Google\\Site_Kit\\Plugin' => $baseDir . '/Plugin.php',
);
Warning: array_merge(): Expected parameter 1 to be an array, int given in /var/www/html/helitower.com.br/web/wp-content/plugins/google-site-kit/includes/loader.php on line 28
Warning: Class 'Google\Site_Kit_Dependencies\Google\Client' not found in /var/www/html/helitower.com.br/web/wp-content/plugins/google-site-kit/third-party/google/apiclient/src/aliases.php on line 12
Warning: Class 'Google\Site_Kit_Dependencies\Google\Service' not found in /var/www/html/helitower.com.br/web/wp-content/plugins/google-site-kit/third-party/google/apiclient/src/aliases.php on line 12
Warning: Class 'Google\Site_Kit_Dependencies\Google\AccessToken\Revoke' not found in /var/www/html/helitower.com.br/web/wp-content/plugins/google-site-kit/third-party/google/apiclient/src/aliases.php on line 12
Warning: Class 'Google\Site_Kit_Dependencies\Google\AccessToken\Verify' not found in /var/www/html/helitower.com.br/web/wp-content/plugins/google-site-kit/third-party/google/apiclient/src/aliases.php on line 12
Warning: Class 'Google\Site_Kit_Dependencies\Google\Model' not found in /var/www/html/helitower.com.br/web/wp-content/plugins/google-site-kit/third-party/google/apiclient/src/aliases.php on line 12
Warning: Class 'Google\Site_Kit_Dependencies\Google\Utils\UriTemplate' not found in /var/www/html/helitower.com.br/web/wp-content/plugins/google-site-kit/third-party/google/apiclient/src/aliases.php on line 12
Warning: Class 'Google\Site_Kit_Dependencies\Google\AuthHandler\Guzzle6AuthHandler' not found in /var/www/html/helitower.com.br/web/wp-content/plugins/google-site-kit/third-party/google/apiclient/src/aliases.php on line 12
Warning: Class 'Google\Site_Kit_Dependencies\Google\AuthHandler\Guzzle7AuthHandler' not found in /var/www/html/helitower.com.br/web/wp-content/plugins/google-site-kit/third-party/google/apiclient/src/aliases.php on line 12
Warning: Class 'Google\Site_Kit_Dependencies\Google\AuthHandler\Guzzle5AuthHandler' not found in /var/www/html/helitower.com.br/web/wp-content/plugins/google-site-kit/third-party/google/apiclient/src/aliases.php on line 12
Warning: Class 'Google\Site_Kit_Dependencies\Google\AuthHandler\AuthHandlerFactory' not found in /var/www/html/helitower.com.br/web/wp-content/plugins/google-site-kit/third-party/google/apiclient/src/aliases.php on line 12
Warning: Class 'Google\Site_Kit_Dependencies\Google\Http\Batch' not found in /var/www/html/helitower.com.br/web/wp-content/plugins/google-site-kit/third-party/google/apiclient/src/aliases.php on line 12
Warning: Class 'Google\Site_Kit_Dependencies\Google\Http\MediaFileUpload' not found in /var/www/html/helitower.com.br/web/wp-content/plugins/google-site-kit/third-party/google/apiclient/src/aliases.php on line 12
Warning: Class 'Google\Site_Kit_Dependencies\Google\Http\REST' not found in /var/www/html/helitower.com.br/web/wp-content/plugins/google-site-kit/third-party/google/apiclient/src/aliases.php on line 12
Warning: Class 'Google\Site_Kit_Dependencies\Google\Task\Retryable' not found in /var/www/html/helitower.com.br/web/wp-content/plugins/google-site-kit/third-party/google/apiclient/src/aliases.php on line 12
Warning: Class 'Google\Site_Kit_Dependencies\Google\Task\Exception' not found in /var/www/html/helitower.com.br/web/wp-content/plugins/google-site-kit/third-party/google/apiclient/src/aliases.php on line 12
Warning: Class 'Google\Site_Kit_Dependencies\Google\Task\Runner' not found in /var/www/html/helitower.com.br/web/wp-content/plugins/google-site-kit/third-party/google/apiclient/src/aliases.php on line 12
Warning: Class 'Google\Site_Kit_Dependencies\Google\Collection' not found in /var/www/html/helitower.com.br/web/wp-content/plugins/google-site-kit/third-party/google/apiclient/src/aliases.php on line 12
Warning: Class 'Google\Site_Kit_Dependencies\Google\Service\Exception' not found in /var/www/html/helitower.com.br/web/wp-content/plugins/google-site-kit/third-party/google/apiclient/src/aliases.php on line 12
Warning: Class 'Google\Site_Kit_Dependencies\Google\Service\Resource' not found in /var/www/html/helitower.com.br/web/wp-content/plugins/google-site-kit/third-party/google/apiclient/src/aliases.php on line 12
Warning: Class 'Google\Site_Kit_Dependencies\Google\Exception' not found in /var/www/html/helitower.com.br/web/wp-content/plugins/google-site-kit/third-party/google/apiclient/src/aliases.php on line 12
Fatal error: Uncaught Error: Class 'Google\Site_Kit_Dependencies\Google\Task\Composer' not found in /var/www/html/helitower.com.br/web/wp-content/plugins/google-site-kit/third-party/google/apiclient/src/aliases.php:18
Stack trace:
#0 /var/www/html/helitower.com.br/web/wp-content/plugins/google-site-kit/includes/loader.php(62): require_once()
#1 /var/www/html/helitower.com.br/web/wp-content/plugins/google-site-kit/includes/loader.php(65): Google\Site_Kit\autoload_vendor_files()
#2 /var/www/html/helitower.com.br/web/wp-content/plugins/google-site-kit/google-site-kit.php(124): require_once('/var/www/html/h...')
#3 /var/www/html/helitower.com.br/web/wp-settings.php(517): include_once('/var/www/html/h...')
#4 /var/www/html/helitower.com.br/web/wp-config.php(99): require_once('/var/www/html/h...')
#5 /var/www/html/helitower.com.br/web/wp-load.php(50): require_once('/var/www/html/h...')
#6 /var/www/html/helitower.com.br/web/wp-blog-header.php(13): require_once('/var/www/html/h...')
#7 /var/www/html/helitower.com.br/web/index.php in /var/www/html/helitower.com.br/web/wp-content/plugins/google-site-kit/third-party/google/apiclient/src/aliases.php on line 18