Lines:
1 to 52 of 52
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * Jetpack JSON API. * * @package automattic/jetpack */ if ( ! defined( 'WPCOM_JSON_API__DEBUG' ) ) { define( 'WPCOM_JSON_API__DEBUG', false ); } require_once __DIR__ . '/sal/class.json-api-platform.php'; /* class WPCOM_JSON_API */ /* function WPCOM_JSON_API::init() – Initialize. */ /* function WPCOM_JSON_API::add() – Add an endpoint. */ /* function WPCOM_JSON_API::is_truthy() – Determine if a string is truthy. */ /* function WPCOM_JSON_API::is_falsy() – Determine if a string is falsey. */ /* function WPCOM_JSON_API::__construct() – Constructor. */ /* function WPCOM_JSON_API::setup_inputs() – Setup inputs. */ /* function WPCOM_JSON_API::initialize() – Initialize. */ /* function WPCOM_JSON_API::is_jetpack_authorized_for_site() – Checks if the current request is authorized with a blog token. */ /* function WPCOM_JSON_API::serve() – Serve. */ /* function WPCOM_JSON_API::process_request() – Process a request. */ /* function WPCOM_JSON_API::output_early() – Output a response or error without exiting. */ /* function WPCOM_JSON_API::set_output_status_code() – Set output status code. */ /* function WPCOM_JSON_API::output() – Output a response. */ /* function WPCOM_JSON_API::serializable_error() – Serialize an error. */ /* function WPCOM_JSON_API::output_error() – Output an error. */ /* function WPCOM_JSON_API::filter_fields() – Filter fields in a response. */ /* function WPCOM_JSON_API::ensure_http_scheme_of_home_url() – Filter for `home_url`. */ /* function WPCOM_JSON_API::comment_edit_pre() – Decode HTML special characters in comment content. */ /* function WPCOM_JSON_API::json_encode() – JSON encode. */ /* function WPCOM_JSON_API::ends_with() – Test if a string ends with a string. */ /* function WPCOM_JSON_API::get_blog_id_for_output() – Returns the site’s blog_id in the WP.com ecosystem */ /* function WPCOM_JSON_API::get_blog_id() – Returns the site’s local blog_id. */ /* function WPCOM_JSON_API::switch_to_blog_and_validate_user() – Switch to blog and validate user. */ /* function WPCOM_JSON_API::is_restricted_blog() – Returns true if the specified blog ID is a restricted blog */ /* function WPCOM_JSON_API::post_like_count() – Post like count. */ /* function WPCOM_JSON_API::is_liked() – Is liked? */ /* function WPCOM_JSON_API::is_reblogged() – Is reblogged? */ /* function WPCOM_JSON_API::is_following() – Is following? */ /* function WPCOM_JSON_API::add_global_ID() – Add global ID. */ /* function WPCOM_JSON_API::get_avatar_url() – Get avatar URL. */ /* function WPCOM_JSON_API::wp_count_comments() – Counts the number of comments on a site, excluding certain comment types. */ /* function WPCOM_JSON_API::trap_wp_die() – Traps `wp_die()` calls and outputs a JSON response instead. */ /* function WPCOM_JSON_API::wp_die_handler_callback() – Filter function for `wp_die_handler` and similar filters. */ /* function WPCOM_JSON_API::wp_die_handler() – Handler for `wp_die` calls. */ /* function WPCOM_JSON_API::output_trapped_error() – Output the trapped error. */ /* function WPCOM_JSON_API::finish_request() – Finish the request. */