input(); if ( ! isset( $args['path'] ) ) { return new WP_Error( 'invalid_args', __( 'You must specify a helper script path', 'jetpack' ), 400 ); } $this->script_path = $args['path']; return true; } /** * Deletes the specified Helper Script. */ protected function delete() { $this->result = Helper_Script_Manager::delete_helper_script( $this->script_path ); Helper_Script_Manager::cleanup_expired_helper_scripts(); } /** * Returns the success or failure of the deletion operation * * @return array An array containing one key; 'success', which specifies whether the operation was successful. */ protected function result() { return array( 'success' => $this->result, ); } }