filename
stringlengths
11
137
content
stringlengths
6
292k
projects/plugins/jetpack/modules/wordads/php/class-wordads-admin.php
<?php /** * WordAds Admin. * * @package automattic/jetpack */ /** * The standard set of admin pages for the user if Jetpack is installed */ class WordAds_Admin { /** * WordAds_Admin Constructor. * * @since 4.5.0 */ public function __construct() { if ( current_user_can( 'manage_options' ) && isset( $...
projects/plugins/jetpack/modules/wordads/php/class-wordads-api.php
<?php /** * The WordAds API. * * @package automattic/jetpack */ use Automattic\Jetpack\Connection\Client; use Automattic\Jetpack\Status; /** * Methods for accessing data through the WPCOM REST API * * @since 4.5.0 */ class WordAds_API { /** * Get the site's WordAds status * * @return array|WP_Error Ar...
projects/plugins/jetpack/modules/wordads/php/class-wordads-sidebar-widget.php
<?php /** * Widget for adding ads to a sidebar. * * @package automattic/jetpack */ /** * Widget for inserting an ad into your sidebar * * @since 4.5.0 */ class WordAds_Sidebar_Widget extends WP_Widget { /** * Allowed tags. * * @var string[] */ private static $allowed_tags = array( 'mrec', 'wideskysc...
projects/plugins/jetpack/modules/wordads/php/class-wordads-consent-management-provider.php
<?php /** * WordAds Consent Management Provider * * @package automattic/jetpack */ use Automattic\Jetpack\Assets; /** * Class WordAds_Consent_Management_Provider * * This is an integration with the GDPR Consent Management Provider * to comply with GDPR requirements for privacy and transparency related to adve...
projects/plugins/jetpack/modules/wordads/php/networks/amazon.php
<?php /** * Amazon Network. * * @package automattic/jetpack */ // stub.
projects/plugins/jetpack/modules/custom-css/custom-css.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName // phpcs:disable Universal.Files.SeparateFunctionsFromOO.Mixed -- TODO: Move classes to appropriately-named class files. use Automattic\Jetpack\Assets; /** * Alternate Custom CSS source for 4.7 compat. * * @since 4.4.2 * * @package automattic/j...
projects/plugins/jetpack/modules/custom-css/csstidy/lang.inc.php
<?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase /** * Localization of CSS Optimiser Interface of CSSTidy * * Copyright 2005, 2006, 2007 Florian Schmitz * * This file is part of CSSTidy. * * CSSTidy is free software; you can redistribute it and/or modify * it under the terms of the GNU Le...
projects/plugins/jetpack/modules/custom-css/csstidy/class.csstidy-print.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * CSSTidy - CSS Parser and Optimiser * * CSS Printing class * This class prints CSS data generated by csstidy. * * Copyright 2005, 2006, 2007 Florian Schmitz * * This file is part of CSSTidy. * * CSSTidy is free software; you can redist...
projects/plugins/jetpack/modules/custom-css/csstidy/class.csstidy-ctype.php
<?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase /** * CSSTidy - CSS Parser and Optimiser * * CSS ctype functions * Defines some functions that can be not defined. * * This file is part of CSSTidy. * * CSSTidy is free software; you can redistribute it and/or modify * it under the terms of ...
projects/plugins/jetpack/modules/custom-css/csstidy/class.csstidy.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * CSSTidy - CSS Parser and Optimiser * * CSS Parser class * * Copyright 2005, 2006, 2007 Florian Schmitz * * This file is part of CSSTidy. * * CSSTidy is free software; you can redistribute it and/or modify * it under the terms of the...
projects/plugins/jetpack/modules/custom-css/csstidy/data.inc.php
<?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase /** * Various CSS Data for CSSTidy * * This file is part of CSSTidy. * * CSSTidy is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; eit...
projects/plugins/jetpack/modules/custom-css/csstidy/class.csstidy-optimise.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * CSSTidy - CSS Parser and Optimiser * * CSS Optimising Class * This class optimises CSS data generated by csstidy. * * Copyright 2005, 2006, 2007 Florian Schmitz * * This file is part of CSSTidy. * * CSSTidy is free software; you can r...
projects/plugins/jetpack/modules/custom-css/csstidy/data-wp.inc.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName unset( $GLOBALS['csstidy']['all_properties']['binding'] ); $GLOBALS['csstidy']['all_properties']['text-size-adjust'] = 'CSS3.0'; // Support browser prefixes for properties only in the latest CSS draft foreach ( $GLOBALS['csstidy']['all_properties'] ...
projects/plugins/jetpack/modules/custom-css/custom-css/preprocessors.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * CSS preprocessor registration. * * To add a new preprocessor (or replace an existing one), hook into the * jetpack_custom_css_preprocessors filter and add an entry to the array * that is passed in. * * Format is: * $preprocessors[ UNIQUE...
projects/plugins/jetpack/modules/custom-css/custom-css/preprocessors/lessc.inc.php
<?php // phpcs:disable -- Copy-pasted library. Not reformatting to facilitate identification of actual changes. /** * lessphp v0.5.0 + php 8 compatibility changes by a8c (project is unmaintained) * https://leafo.net/lessphp * * LESS CSS compiler, adapted from http://lesscss.org * * Copyright 2013, Leaf Corcoran <...
projects/plugins/jetpack/modules/sso/class.jetpack-sso-helpers.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * A collection of helper functions used in the SSO module. * * @package automattic/jetpack */ if ( ! class_exists( 'Jetpack_SSO_Helpers' ) ) : /** * A collection of helper functions used in the SSO module. * * @since 4.1.0 */ class ...
projects/plugins/jetpack/modules/sso/class.jetpack-sso-notices.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * A collection of helper functions used in the SSO module. * * @package automattic/jetpack */ use Automattic\Jetpack\Redirect; if ( ! class_exists( 'Jetpack_SSO_Notices' ) ) : /** * A collection of helper functions used in the SSO module....
projects/plugins/jetpack/modules/sso/class-jetpack-force-2fa.php
<?php /** * Force Jetpack 2FA Functionality * * Ported from original repo at https://github.com/automattic/jetpack-force-2fa * * @package automattic/jetpack */ /** * Force users to use two factor authentication. */ class Jetpack_Force_2FA { /** * The role to force 2FA for. * * Defaults to manage_option...
projects/plugins/jetpack/modules/sso/class.jetpack-sso-user-admin.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName use Automattic\Jetpack\Assets; use Automattic\Jetpack\Connection\Client; use Automattic\Jetpack\Roles; use Automattic\Jetpack\Tracking; if ( ! class_exists( 'Jetpack_SSO_User_Admin' ) ) : require_once JETPACK__PLUGIN_DIR . 'modules/sso/class.jetpack-...
projects/plugins/jetpack/modules/theme-tools/site-breadcrumbs.php
<?php /** * Plugin Name: Site Breadcrumbs * Plugin URI: https://wordpress.com * Description: Quickly add breadcrumbs to the single view of a hierarchical post type or a hierarchical taxonomy. * Author: Automattic * Version: 1.0 * Author URI: https://wordpress.com * License: GPL2 or later * Text Domain: jetpack ...
projects/plugins/jetpack/modules/theme-tools/featured-content.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * Theme Tools: functions for Featured Content enhancements. * * @package automattic/jetpack */ use Automattic\Jetpack\Constants; // phpcs:disable Universal.Files.SeparateFunctionsFromOO.Mixed -- TODO: Move classes to appropriately-named class...
projects/plugins/jetpack/modules/theme-tools/site-logo.php
<?php /** * Theme Tools: Site Logo. * * @see https://jetpack.com/support/site-logo/ * * This feature will only be activated for themes that declare their support. * This can be done by adding code similar to the following during the * 'after_setup_theme' action: * * $args = array( * 'header-text' => array( ...
projects/plugins/jetpack/modules/theme-tools/infinite-scroll.php
<?php /** * Theme Tools: Infinite Scroll functions. * * @package automattic/jetpack */ /** * Load theme's infinite scroll annotation file, if present in the IS plugin. * The `setup_theme` action is used because the annotation files should be using `after_setup_theme` to register support for IS. * * As released...
projects/plugins/jetpack/modules/theme-tools/responsive-videos.php
<?php /** * Theme Tools: Responsive videos enhancements. * * @package automattic/jetpack */ use Automattic\Jetpack\Assets; /** * Load the Responsive videos plugin */ function jetpack_responsive_videos_init() { /* If the doesn't theme support 'jetpack-responsive-videos', don't continue */ if ( ! current_theme...
projects/plugins/jetpack/modules/theme-tools/random-redirect.php
<?php /** * Plugin Name: Random Redirect * Plugin URI: https://wordpress.org/extend/plugins/random-redirect/ * Description: Allows you to create a link to yourblog.example.com/?random which will redirect someone to a random post on your blog, in a StumbleUpon-like fashion. * Version: 1.2-wpcom * Author: Matt Mulle...
projects/plugins/jetpack/modules/theme-tools/content-options.php
<?php /** * Jetpack Compatibility File * See: https://jetpack.com/ * * @package automattic/jetpack */ /** * Content Options. * * This feature will only be activated for themes that declare their support. * This can be done by adding code similar to the following during the * 'after_setup_theme' action: * a...
projects/plugins/jetpack/modules/theme-tools/social-menu.php
<?php /** * Social Menu. * * This feature will only be activated for themes that declare their support. * This can be done by adding code similar to the following during the * 'after_setup_theme' action: * * add_theme_support( 'jetpack-social-menu' ); * * @package automattic/jetpack */ /** * Activate the So...
projects/plugins/jetpack/modules/theme-tools/social-links.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * Theme Tools: Social Links. * * This feature will only be activated for themes that declare their support. * This can be done by adding code similar to the following during the * 'after_setup_theme' action: * * add_theme_support( 'social-li...
projects/plugins/jetpack/modules/theme-tools/devicepx.php
<?php /** * Loads the devicepx library which improves the resolution of gravatars and * wordpress.com uploads on hi-res and zoomed browsers. * * This feature will only be activated for themes that declare their support. * This can be done by adding code similar to the following during the * 'after_setup_theme' ac...
projects/plugins/jetpack/modules/theme-tools/site-logo/inc/functions.php
<?php /** * Functions and template tags for Site Logo theme tool. * * @package automattic/jetpack */ /** * Retrieve the site logo URL or ID (URL by default). Pass in the string 'id' for ID. * * @uses get_option() * @uses esc_url_raw() * @uses set_url_scheme() * @param string $show 'url' or 'id' for site logo...
projects/plugins/jetpack/modules/theme-tools/site-logo/inc/class-site-logo.php
<?php /** * Site Logo class main class file. * * @package automattic/jetpack */ /** * Site Logo class for managing a theme-agnostic logo through the Customizer. */ class Site_Logo { /** * Stores our single instance. * * @var Site_Logo */ private static $instance; /** * Stores the attachment ID of t...
projects/plugins/jetpack/modules/theme-tools/site-logo/inc/compat.php
<?php /** * Functions for maintaining backwards compatibility with unprefixed template tags from the original Site Logo plugin. * These should never be used in themes; instead, use the template tags in functions.php. * See: https://github.com/Automattic/jetpack/pull/956 * * @package automattic/jetpack */ if ( ! ...
projects/plugins/jetpack/modules/theme-tools/compat/twentyfifteen.php
<?php /** * Jetpack Compatibility File * See: https://jetpack.com/ * * @package automattic/jetpack */ /** * Add Jetpack theme supports for Twenty Fifteen. */ function twentyfifteen_jetpack_setup() { /** * Add theme support for Responsive Videos. */ add_theme_support( 'jetpack-responsive-videos' ); /** ...
projects/plugins/jetpack/modules/theme-tools/compat/twentysixteen.php
<?php /** * Jetpack Compatibility File * See: https://jetpack.com/ * * @package automattic/jetpack */ /** * Add Jetpack theme supports for Twenty Sixteen. */ function twentysixteen_jetpack_setup() { /** * Add theme support for Responsive Videos. */ add_theme_support( 'jetpack-responsive-videos' ); /** ...
projects/plugins/jetpack/modules/theme-tools/compat/twentynineteen.php
<?php /** * Jetpack Compatibility File * See: https://jetpack.com/ * * @package automattic/jetpack */ /** * Add Jetpack theme supports for Twenty Nineteen. */ function twentynineteen_jetpack_setup() { /** * Add theme support for Infinite Scroll. */ add_theme_support( 'infinite-scroll', array( 'typ...
projects/plugins/jetpack/modules/theme-tools/compat/twentyseventeen.php
<?php /** * Jetpack Compatibility File * See: https://jetpack.com/ * * @package automattic/jetpack */ /** * Add Jetpack theme supports for Twenty Seventeen. */ function twentyseventeen_jetpack_setup() { /** * Add theme support for geo-location. */ add_theme_support( 'jetpack-geo-location' ); } add_action(...
projects/plugins/jetpack/modules/theme-tools/compat/twentytwentyone.php
<?php /** * Jetpack Compatibility File * See: https://jetpack.com/ * * @package automattic/jetpack */ /** * Add Jetpack extra functionality to Twenty Twenty One. */ function twentytwentyone_jetpack_setup() { /** * Add theme support for Infinite Scroll. */ add_theme_support( 'infinite-scroll', array( ...
projects/plugins/jetpack/modules/theme-tools/compat/twentyfourteen.php
<?php /** * Jetpack Compatibility File * See: https://jetpack.com/ * * @package automattic/jetpack */ /** * A last try to show posts, in case the Featured Content plugin returns no IDs. * * @param array $featured_ids Array of 'featured' post IDs. * @return array */ function twentyfourteen_featured_content_po...
projects/plugins/jetpack/modules/theme-tools/compat/twentytwenty.php
<?php /** * Jetpack Compatibility File * See: https://jetpack.com/ * * @package automattic/jetpack */ /** * Add Jetpack extra functionality to Twenty Twenty. * * See: https://jetpack.com/support/infinite-scroll/ * See: https://jetpack.com/support/responsive-videos/ * See: https://jetpack.com/support/content-...
projects/plugins/jetpack/modules/theme-tools/content-options/blog-display.php
<?php /** * Theme Tools: the functions to display Content or Excerpt in a theme. * * @package automattic/jetpack */ /** * If the theme doesn't support 'jetpack-content-options', don't continue. */ if ( ! current_theme_supports( 'jetpack-content-options' ) ) { return; } /** * Get the Blog Display setting. * I...
projects/plugins/jetpack/modules/theme-tools/content-options/customizer.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * Theme Tools: functions for Customizer enhancements. * * @package automattic/jetpack */ /** * Add Content section to the Theme Customizer. * * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ function jetpack_content_...
projects/plugins/jetpack/modules/theme-tools/content-options/post-details.php
<?php /** * Theme Tools: functions for Post Details. * * @package automattic/jetpack */ /** * The function to include Post Details in a theme's stylesheet. */ function jetpack_post_details_enqueue_scripts() { // Make sure we can proceed. list( $should_run, $options, $definied, $post_details ) = jetpack_post_de...
projects/plugins/jetpack/modules/theme-tools/content-options/author-bio.php
<?php /** * Theme Tools: Author Bio functions. * * @package automattic/jetpack */ /** * The function to display Author Bio in a theme. */ function jetpack_author_bio() { // If the theme doesn't support 'jetpack-content-options', don't continue. if ( ! current_theme_supports( 'jetpack-content-options' ) ) { r...
projects/plugins/jetpack/modules/theme-tools/content-options/featured-images-fallback.php
<?php /** * Theme Tools: functions for Featured Images fallback. * * @package automattic/jetpack */ /** * Get one image from a specified post in the following order: * Featured Image then first image from the_content HTML * and filter the post_thumbnail_html * * @param string $html The HTML...
projects/plugins/jetpack/modules/theme-tools/content-options/featured-images.php
<?php /** * Theme Tools: functions for Featured Images. * * @package automattic/jetpack */ /** * The function to prevent for Featured Images to be displayed in a theme. * * @param array $metadata Post metadata. * @param int $object_id Post ID. * @param string $meta_key Metadata key. */ function jetpack_f...
projects/plugins/jetpack/modules/theme-tools/social-menu/icon-functions.php
<?php /** * SVG icons related functions and filters * * @package automattic/jetpack */ if ( ! function_exists( 'jetpack_social_menu_include_svg_icons' ) ) : /** * Add SVG definitions to the footer. */ function jetpack_social_menu_include_svg_icons() { // Return early if Social Menu doesn't exist. if ( ! ...
projects/plugins/jetpack/modules/google-fonts/load.php
<?php /** * Load the google fonts based on the current WordPress version. * * @package automattic/jetpack */ add_action( 'plugins_loaded', function () { if ( class_exists( 'WP_Font_Face' ) ) { // WordPress 6.5 or above with the new Font Library. require_once __DIR__ . '/current/load-google-fonts.php'; ...
projects/plugins/jetpack/modules/google-fonts/current/class-jetpack-google-font-face.php
<?php /** * Jetpack_Google_Font_Face class * * @package automattic/jetpack */ /** * Jetpack Google Font Face disables Font Face hooks in Core that prints **ALL** font faces. * Instead, it collects fonts that are used in global styles or block-level settings and * print those fonts in use. */ class Jetpack_Goog...
projects/plugins/jetpack/modules/google-fonts/current/load-google-fonts.php
<?php /** * Load the google fonts by the new Font Library. See pNEWy-hhx-p2. * * @package automattic/jetpack */ if ( ! class_exists( 'Jetpack_Google_Font_Face' ) ) { /** * Load Jetpack Google Font Face */ require_once __DIR__ . '/class-jetpack-google-font-face.php'; } /** * Gets the Google Fonts data * *...
projects/plugins/jetpack/modules/google-fonts/wordpress-6.3/load-google-fonts.php
<?php /** * Load the google fonts by wp_register_fonts or wp_register_webfonts. * * @package automattic/jetpack */ /** * Load the constants. */ require_once __DIR__ . '/constants.php'; /** * Register a curated selection of Google Fonts. * * @return void */ function jetpack_add_google_fonts_provider() { if ...
projects/plugins/jetpack/modules/google-fonts/wordpress-6.3/constants.php
<?php /** * Define the constants of the Jetpack Google Fonts module. * * @package automattic/jetpack */ /** * Curated list of Google Fonts * See p9Jlb4-22P-p2 */ const JETPACK_GOOGLE_FONTS_LIST = array( 'Albert Sans', 'Alegreya', 'Arvo', 'Bodoni Moda', 'Cabin', 'Chivo', 'Commissioner', 'Cormorant', 'Co...
projects/plugins/jetpack/modules/sitemaps/sitemap-buffer-page.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName // phpcs:disable Generic.Classes.DuplicateClassName.Found -- sitemap-builder.php will require correct class file. /** * Sitemaps (per the protocol) are essentially lists of XML fragments; * lists which are subject to size constraints. The Jetpack_Sit...
projects/plugins/jetpack/modules/sitemaps/sitemap-buffer-news-fallback.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName // phpcs:disable Generic.Classes.DuplicateClassName.Found -- sitemap-builder.php will require correct class file. /** * Sitemaps (per the protocol) are essentially lists of XML fragments; * lists which are subject to size constraints. The Jetpack_Sit...
projects/plugins/jetpack/modules/sitemaps/sitemap-state.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * Abstract sitemap generation state class. * * @package automattic/jetpack * @since 4.8.0 * @author Automattic */ /* Include standard constants and librarian. */ require_once __DIR__ . '/sitemap-constants.php'; require_once __DIR__ . '/sitem...
projects/plugins/jetpack/modules/sitemaps/sitemap-finder.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * The functions in this class provide an API for handling * sitemap related URIs. * * @package automattic/jetpack * @since 4.8.0 * @author Automattic */ /** * The Jetpack_Sitemap_Finder object deals with constructing * sitemap URIs. * *...
projects/plugins/jetpack/modules/sitemaps/sitemap-logger.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * A message logger for the Jetpack Sitemap module. * * @package automattic/jetpack * @since 4.8.0 */ /** * Handles logging errors and debug messages for sitemap generator. * * A Jetpack_Sitemap_Logger object keeps track of its birth time a...
projects/plugins/jetpack/modules/sitemaps/sitemap-builder.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * Build the sitemap tree. * * @package automattic/jetpack * @since 4.8.0 * @author Automattic */ /* Include sitemap subclasses, if not already, and include proper buffer based on phpxml's availability. */ require_once __DIR__ . '/sitemap-con...
projects/plugins/jetpack/modules/sitemaps/sitemap-stylist.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * The XSL used to style sitemaps is essentially a bunch of * static strings. This class handles the construction of * those strings. * * @package automattic/jetpack * @since 4.8.0 */ /** * Builds the XSL files required by Jetpack_Sitemap_M...
projects/plugins/jetpack/modules/sitemaps/sitemap-constants.php
<?php /** * Sitemap-related constants. * * @package automattic/jetpack * @since 4.8.0 * @author Automattic */ /** * Number of seconds between sitemap and news sitemap updates in development code. * In production, sitemaps are cached for 12 hours. * In development, sitemaps are cache for 1 minute. * * @since...
projects/plugins/jetpack/modules/sitemaps/sitemap-buffer-master.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName // phpcs:disable Generic.Classes.DuplicateClassName.Found -- sitemap-builder.php will require correct class file. /** * Sitemaps (per the protocol) are essentially lists of XML fragments; * lists which are subject to size constraints. The Jetpack_Sit...
projects/plugins/jetpack/modules/sitemaps/sitemap-buffer-page-fallback.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName // phpcs:disable Generic.Classes.DuplicateClassName.Found -- sitemap-builder.php will require correct class file. /** * Sitemaps (per the protocol) are essentially lists of XML fragments; * lists which are subject to size constraints. The Jetpack_Sit...
projects/plugins/jetpack/modules/sitemaps/sitemap-buffer.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * Sitemaps (per the protocol) are essentially lists of XML fragments; * lists which are subject to size constraints. The Jetpack_Sitemap_Buffer * class abstracts the details of constructing these lists while * maintaining the constraints. * *...
projects/plugins/jetpack/modules/sitemaps/sitemap-buffer-video-fallback.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName // phpcs:disable Generic.Classes.DuplicateClassName.Found -- sitemap-builder.php will require correct class file. /** * Sitemaps (per the protocol) are essentially lists of XML fragments; * lists which are subject to size constraints. The Jetpack_Sit...
projects/plugins/jetpack/modules/sitemaps/sitemaps.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * Generate sitemap files in base XML as well as some namespace extensions. * * This module generates two different base sitemaps. * * 1. sitemap.xml * The basic sitemap is updated regularly by wp-cron. It is stored in the * database an...
projects/plugins/jetpack/modules/sitemaps/sitemap-buffer-master-fallback.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName // phpcs:disable Generic.Classes.DuplicateClassName.Found -- sitemap-builder.php will require correct class file. /** * Sitemaps (per the protocol) are essentially lists of XML fragments; * lists which are subject to size constraints. The Jetpack_Sit...
projects/plugins/jetpack/modules/sitemaps/sitemap-buffer-image.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName // phpcs:disable Generic.Classes.DuplicateClassName.Found -- sitemap-builder.php will require correct class file. /** * Sitemaps (per the protocol) are essentially lists of XML fragments; * lists which are subject to size constraints. The Jetpack_Sit...
projects/plugins/jetpack/modules/sitemaps/sitemap-librarian.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * Sitemaps are stored in the database using a custom table. This class * provides a small API for storing and retrieving sitemap data so we can * avoid lots of explicit SQL juggling while building sitemaps. This file * also includes the SQL use...
projects/plugins/jetpack/modules/sitemaps/sitemap-buffer-news.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName // phpcs:disable Generic.Classes.DuplicateClassName.Found -- sitemap-builder.php will require correct class file. /** * Sitemaps (per the protocol) are essentially lists of XML fragments; * lists which are subject to size constraints. The Jetpack_Sit...
projects/plugins/jetpack/modules/sitemaps/sitemap-buffer-image-fallback.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName // phpcs:disable Generic.Classes.DuplicateClassName.Found -- sitemap-builder.php will require correct class file. /** * Sitemaps (per the protocol) are essentially lists of XML fragments; * lists which are subject to size constraints. The Jetpack_Sit...
projects/plugins/jetpack/modules/sitemaps/sitemap-buffer-video.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName // phpcs:disable Generic.Classes.DuplicateClassName.Found -- sitemap-builder.php will require correct class file. /** * Sitemaps (per the protocol) are essentially lists of XML fragments; * lists which are subject to size constraints. The Jetpack_Sit...
projects/plugins/jetpack/modules/sitemaps/sitemap-buffer-fallback.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * The fallback buffer for users with no XML support. * * @since 5.3.0 * @package automattic/jetpack */ /** * A buffer for constructing master sitemap xml files. * * @since 5.1.0 */ abstract class Jetpack_Sitemap_Buffer_Fallback extends Je...
projects/plugins/jetpack/modules/seo-tools/class-jetpack-seo.php
<?php /** * Main class file for the SEO Tools module. * * @package automattic/jetpack */ /** * An SEO expert walks into a bar, bars, pub, public house, Irish pub, drinks, beer, wine, liquor, Grey Goose, Cristal... */ class Jetpack_SEO { /** * Constructor. */ public function __construct() { add_action( 'i...
projects/plugins/jetpack/modules/seo-tools/class-jetpack-seo-posts.php
<?php /** * Class containing utility static methods for managing SEO options for Posts and Pages. * * @package automattic/jetpack */ /** * Provides static utility methods for managing SEO options for Posts and Pages. */ class Jetpack_SEO_Posts { /** * Key of the post meta values that will be used to store pos...
projects/plugins/jetpack/modules/seo-tools/class-jetpack-seo-utils.php
<?php /** * Class containing utility static methods that other SEO tools are relying on. * * @package automattic/jetpack */ use Automattic\Jetpack\Current_Plan as Jetpack_Plan; /** * Class containing utility static methods that other SEO tools are relying on. */ class Jetpack_SEO_Utils { /** * Site option na...
projects/plugins/jetpack/modules/seo-tools/class-jetpack-seo-titles.php
<?php /** * Class containing utility static methods for managing SEO custom title formats. * * @package automattic/jetpack */ /* * Each title format is an array of arrays containing two values: * - type * - value * * Possible values for type are: 'token' and 'string'. * Possible values for 'value' are: any...
projects/plugins/jetpack/modules/post-by-email/class-jetpack-post-by-email.php
<?php /** * Class Jetpack_Post_By_Email * * @package automattic/jetpack */ use Automattic\Jetpack\Connection\Tokens; use Automattic\Jetpack\Redirect; /** * Class Jetpack_Post_By_Email */ class Jetpack_Post_By_Email { /** * Initialize PBE. * * @return Jetpack_Post_By_Email */ public static function ini...
projects/plugins/jetpack/modules/memberships/class-jetpack-memberships.php
<?php /** * Jetpack_Memberships: wrapper for memberships functions. * * @package Jetpack * @since 7.3.0 */ use Automattic\Jetpack\Blocks; use Automattic\Jetpack\Extensions\Premium_Content\Subscription_Service\Abstract_Token_Subscription_Service; use Automattic\Jetpack\Status\Host; use const Automattic\Jet...
projects/plugins/jetpack/modules/cloudflare-analytics/cloudflare-analytics.php
<?php /** * Cloudflare Analytics * Let WPCOM users automatically insert a Cloudflare analytics JS snippet into their site header. * * @package automattic/jetpack */ namespace Automattic\Jetpack\Cloudflare_Analytics; use Automattic\Jetpack\Status\Host; /** * Add Cloudflare Analytics tracking code to the head. ...
projects/plugins/jetpack/modules/widget-visibility/widget-conditions.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * Main class file for the Widget Visibility module. * * @package automattic/jetpack */ use Automattic\Jetpack\Assets; /** * Hide or show legacy widgets conditionally. * * This class has two responsiblities - administrating the conditions i...
projects/plugins/jetpack/modules/verification-tools/blog-verification-tools.php
<?php /** * Handles site verification services. * * @package jetpack */ /** * Return an array of supported verification services. * Add new services to this function. * * @return array - an array of supported services. */ function jetpack_verification_services() { return array( 'google' => array( 'na...
projects/plugins/jetpack/modules/verification-tools/verification-tools-utils.php
<?php /** * Helper functions that are called from API even when module is inactive should be added here. * This file will be included in module-extras.php. * * @package jetpack */ if ( ! function_exists( 'jetpack_verification_validate' ) ) { /** * Validate jetpack verification codes. * * @param array $veri...
projects/plugins/jetpack/modules/stats/class-jetpack-stats-upgrade-nudges.php
<?php /** * Adds a section with Upgrade nudges to the Status Report page * * @package jetpack */ use Automattic\Jetpack\Connection\Manager; use Automattic\Jetpack\Current_Plan as Jetpack_Plan; use Automattic\Jetpack\Jetpack_CRM_Data; use Automattic\Jetpack\Plugins_Installer; use Automattic\Jetpack\Redirect; use Au...
projects/plugins/jetpack/modules/widgets/contact-info.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName // phpcs:disable Universal.Files.SeparateFunctionsFromOO.Mixed -- TODO: Move classes to appropriately-named class files. use Automattic\Jetpack\Assets; use Automattic\Jetpack\Redirect; if ( ! class_exists( 'Jetpack_Contact_Info_Widget' ) ) { /** ...
projects/plugins/jetpack/modules/widgets/simple-payments.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName // phpcs:disable Universal.Files.SeparateFunctionsFromOO.Mixed -- TODO: Move classes to appropriately-named class files. use Automattic\Jetpack\Tracking; // Disable direct access/execution to/of the widget code. if ( ! defined( 'ABSPATH' ) ) { exit...
projects/plugins/jetpack/modules/widgets/goodreads.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName // phpcs:disable Universal.Files.SeparateFunctionsFromOO.Mixed -- TODO: Move classes to appropriately-named class files. add_action( 'widgets_init', 'jetpack_goodreads_widget_init' ); /** * Register the widget for use in Appearance -> Widgets */ fu...
projects/plugins/jetpack/modules/widgets/milestone.php
<?php /** * Milestone widget loader. * * Everything happens within the folder, but Jetpack loads widgets via a widgets/*.php scheme. * * @package automattic/jetpack */ /** * Includes the milestone widget. This makes it easier to keep the /milestone/ dir content in sync with wpcom. */ require_once __DIR__ . '/...
projects/plugins/jetpack/modules/widgets/facebook-likebox.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName // phpcs:disable Universal.Files.SeparateFunctionsFromOO.Mixed -- TODO: Move classes to appropriately-named class files. add_action( 'widgets_init', 'jetpack_facebook_likebox_init' ); /** * Register the widget for use in Appearance -> Widgets */ fu...
projects/plugins/jetpack/modules/widgets/my-community.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName // phpcs:disable Universal.Files.SeparateFunctionsFromOO.Mixed -- TODO: Move classes to appropriately-named class files. use Automattic\Jetpack\Redirect; // Disable direct access/execution to/of the widget code. if ( ! defined( 'ABSPATH' ) ) { exit...
projects/plugins/jetpack/modules/widgets/gallery.php
<?php // phpcs:ignore eWordPress.Files.FileName.InvalidClassFileName /** * Module Name: Gallery widget * * @package automattic/jetpack */ // phpcs:disable Universal.Files.SeparateFunctionsFromOO.Mixed -- TODO: Move classes to appropriately-named class files. use Automattic\Jetpack\Assets; use Automattic\Jetpack\I...
projects/plugins/jetpack/modules/widgets/mailchimp.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * MailChimp popup widget. * It acts as a wrapper for the mailchimp_subscriber_popup shortcode. * * @package automattic/jetpack */ // phpcs:disable Universal.Files.SeparateFunctionsFromOO.Mixed -- TODO: Move classes to appropriately-named clas...
projects/plugins/jetpack/modules/widgets/wordpress-post-widget.php
<?php /** * Plugin Name: Display Recent WordPress Posts Widget * Description: Displays recent posts from a WordPress.com or Jetpack-enabled self-hosted WordPress site. * Version: 1.0 * Author: Brad Angelcyk, Kathryn Presner, Justin Shreve, Carolyn Sonnek * Author URI: https://automattic.com * License: GPL2 * Tex...
projects/plugins/jetpack/modules/widgets/upcoming-events.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * Upcoming Events widget * * It relies on the icalendar-reader library. * * @package automattic/jetpack */ // phpcs:disable Universal.Files.SeparateFunctionsFromOO.Mixed -- TODO: Move classes to appropriately-named class files. /** * Regis...
projects/plugins/jetpack/modules/widgets/image-widget.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * Module Name: Image Widget * Module Description: Easily add images to your theme's sidebar. * Sort Order: 20 * First Introduced: 1.2 */ // phpcs:disable Universal.Files.SeparateFunctionsFromOO.Mixed -- TODO: Move classes to appropriately-nam...
projects/plugins/jetpack/modules/widgets/flickr.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName // phpcs:disable Universal.Files.SeparateFunctionsFromOO.Mixed -- TODO: Move classes to appropriately-named class files. /** * Disable direct access/execution to/of the widget code. */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists(...
projects/plugins/jetpack/modules/widgets/rsslinks-widget.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * RSS Links Widget * * @package automattic/jetpack */ // phpcs:disable Universal.Files.SeparateFunctionsFromOO.Mixed -- TODO: Move classes to appropriately-named class files. /** * Register the widget. */ function jetpack_rss_links_widget_i...
projects/plugins/jetpack/modules/widgets/class-jetpack-eu-cookie-law-widget.php
<?php /** * Main class file for EU Cookie Law Widget. * * @package automattic/jetpack */ use Automattic\Jetpack\Assets; /** * Disable direct access/execution to/of the widget code. */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Jetpack_EU_Cookie_Law_Widget' ) ) { /** * EU Cookie Law Widge...
projects/plugins/jetpack/modules/widgets/authors.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * Disable direct access/execution to/of the widget code. */ if ( ! defined( 'ABSPATH' ) ) { exit; } // phpcs:disable Universal.Files.SeparateFunctionsFromOO.Mixed -- TODO: Move classes to appropriately-named class files. /** * Widget to displ...
projects/plugins/jetpack/modules/widgets/google-translate.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * Plugin Name: Google Translate Widget for WordPress.com * Plugin URI: https://automattic.com * Description: Add a widget for automatic translation * Author: Artur Piszek * Version: 0.1 * Author URI: https://automattic.com * Text Domain: jet...
projects/plugins/jetpack/modules/widgets/social-icons.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName // phpcs:disable Universal.Files.SeparateFunctionsFromOO.Mixed -- TODO: Move classes to appropriately-named class files. /** * Social Icons Widget. */ class Jetpack_Widget_Social_Icons extends WP_Widget { const ID_BASE = 'jetpack_widget_social_ic...
projects/plugins/jetpack/modules/widgets/twitter-timeline.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * Twitter Timeline Widget. * * Based on Evolution Twitter Timeline * (https://wordpress.org/extend/plugins/evolution-twitter-timeline/) * For details on Twitter Timelines see: * - https://twitter.com/settings/widgets * - https://dev.twitte...