Dataset Viewer
Auto-converted to Parquet Duplicate
filename
stringlengths
11
137
content
stringlengths
6
292k
jetpack.php
<?php /** * Plugin Name: Jetpack Monorepo (not a real plugin) * Plugin URI: https://github.com/Automattic/jetpack#jetpack-monorepo * Description: The Jetpack Monorepo is not a plugin. Don't try to use it as one. See the Jetpack Monorepo documentation for instructions on correctly installing Jetpack. * Author: Autom...
tools/get-wp-version.php
<?php /** * Script to be directly executed to output the latest version of WP. * * @package automattic/jetpack */ $ch = curl_init(); curl_setopt( $ch, CURLOPT_URL, 'https://api.wordpress.org/core/version-check/1.7/' ); // Set so curl_exec returns the result instead of outputting it. curl_setopt( $ch, CURLOPT_RETU...
tools/check-changelogger-use.php
#!/usr/bin/env php <?php /** * Tool to list whether projects have been touched so as to need a changelog entry. * * @package automattic/jetpack */ // phpcs:disable WordPress.WP.GlobalVariablesOverride chdir( __DIR__ . '/../' ); /** * Display usage information and exit. */ function usage() { global $argv; ech...
tools/class-jetpack-phpcs-exclude-filter.php
<?php /** * Filter for PHPCS to exclude files in bin/phpcs-excludelist.json. * * @package automattic/jetpack */ use PHP_CodeSniffer\Files\LocalFile; use PHP_CodeSniffer\Util; /** * Filter for PHPCS to exclude files in bin/phpcs-excludelist.json. */ class Jetpack_Phpcs_Exclude_Filter extends Automattic\Jetpack\P...
tools/docker/config/wp-tests-config.php
<?php /** * A wp-config for testing. * * @package automattic/jetpack */ /* Path to the WordPress codebase you'd like to test. Add a forward slash in the end. */ define( 'ABSPATH', '/var/www/html/' ); /* * Path to the theme to test with. * * The 'default' theme is symlinked from test/phpunit/data/themedir1/defa...
tools/docker/mu-plugins/offline-mode-force-wpcom-disconnect.php
<?php /** * Plugin Name: Force WPCOM disconnect in Offline Mode * Description: Connection package will skip disconnect on WPCOM in Offline Mode. Due to Monorepo's `DOCKER_REQUEST_URL` trick, we need this plugin to properly detect offline mode in CLI. * Version: 1.0 * Author: Automattic * Author URI: https://automa...
tools/docker/mu-plugins/01-monorepo.php
<?php /** * Plugin Name: Monorepo Helper * Description: A common place for monorepo things. * Version: 1.0 * Author: Automattic * Author URI: https://automattic.com/ * Text Domain: jetpack * * @package automattic/jetpack */ namespace Jetpack\Docker\MuPlugin; /** * Monorepo Tools. */ class Monorepo { /** ...
tools/docker/mu-plugins/fix-monorepo-plugins-url.php
<?php /** * Plugin Name: Fix monorepo plugins_url * Description: In the Jetpack Docker dev environment, plugins_url fails for packages becuase the symlinks from vendor cause it to be unable to find the "plugin" that the URL is supposed to be relative to. * Version: 1.0 * Author: Automattic * Author URI: https://au...
tools/docker/mu-plugins/debug.php
<?php /** * Plugin Name: Automattic Debug Helpers * Description: <code>l( 'Code is Poetry' )</code> * Version: 1.0 * Author: Automattic * Author URI: https://automattic.com/ * Text Domain: jetpack * * @package automattic/jetpack */ // phpcs:disable WordPress.PHP.DevelopmentFunctions /** * Sweet error loggin...
tools/docker/mu-plugins/avoid-plugin-deletion.php
<?php /** * Plugin Name: Disable deleting and updating Jetpack * Description: Disable deleting and updating -actions for Jetpack plugin. Being able to delete your local development directory from WordPress is catastrophic and you can lose your git history in the process. * Version: 2.0 * Author: Automattic * Autho...
tools/e2e-commons/plugins/e2e-beta-autoupdate-api.php
<?php /** * Plugin Name: E2E Jetpack Beta Autoupdate API * Plugin URI: https://github.com/automattic/jetpack * Author: Jetpack Team * Version: 1.0.0 * Text Domain: jetpack * * @package automattic/jetpack */ // Check that the file is not accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } use Automatti...
tools/e2e-commons/plugins/e2e-waf-data-interceptor.php
<?php /** * Plugin Name: Jetpack E2E waf data interceptor * Plugin URI: https://github.com/automattic/jetpack * Author: Jetpack Team * Version: 1.0.0 * Text Domain: jetpack * * @package automattic/jetpack */ add_filter( 'pre_http_request', 'e2e_intercept_waf_data_request', 1, 3 ); /** * Intercept WPCOM waf d...
tools/e2e-commons/plugins/e2e-plan-data-interceptor.php
<?php /** * Plugin Name: Jetpack E2E plan data interceptor * Plugin URI: https://github.com/automattic/jetpack * Author: Jetpack Team * Version: 1.0.0 * Text Domain: jetpack * * @package automattic/jetpack */ add_filter( 'pre_http_request', 'e2e_intercept_plan_data_request', 1, 3 ); /** * Intercept WPCOM pla...
tools/e2e-commons/plugins/e2e-search-test-helper.php
<?php /** * Plugin Name: Jetpack Search E2E Helper * Plugin URI: https://github.com/automattic/jetpack * Author: Jetpack Team * Version: 1.0.0 * Text Domain: jetpack * * @package automattic/jetpack */ add_filter( 'pre_http_request', 'e2e_jetpack_search_intercept_plan_data_request', 3, 3 ); add_action( 'wp_foot...
tools/e2e-commons/plugins/e2e-wpcom-request-interceptor.php
<?php /** * Plugin Name: WPCOM Request Tracker * Plugin URI: https://github.com/automattic/jetpack * Author: Jetpack Team * Version: 1.0.0 * Text Domain: jetpack * * @package automattic/jetpack */ add_filter( 'pre_http_request', 'e2e_intercept_wpcom_request', -999, 3 ); /** * Intercept WPCOM request. * * @...
tools/e2e-commons/plugins/e2e-plugin-updater.php
<?php /** * Plugin Name: Jetpack E2E plugin updater * Plugin URI: https://github.com/automattic/jetpack * Author: Jetpack Team * Version: 1.0.0 * Text Domain: jetpack * * @package automattic/jetpack */ add_filter( 'site_transient_update_plugins', 'e2e_set_jetpack_update', 10, 1 ); /** * Injects new available...
tools/cli/skeletons/plugins/plugin.php
<?php /** * * Plugin Name: TBD * Plugin URI: TBD * Description: TBD * Version: 1.0.0-alpha * Author: Automattic * Author URI: https://jetpack.com/ * License: GPLv2 or later * Text Domain: jetpack * * @package automattic/TBD */ // Code some good stuff!
tools/cli/skeletons/plugins/tests/php/bootstrap.php
<?php /** * Bootstrap. * * @package automattic/ */ /** * Include the composer autoloader. */ require_once __DIR__ . '/../../vendor/autoload.php';
tools/cli/skeletons/plugins/src/example.php
<?php /** * Put your classes in this `src` folder! * * @package automattic/PACKAGE-NAME */ // Start your code here!
tools/cli/skeletons/packages/tests/php/bootstrap.php
<?php /** * Bootstrap. * * @package automattic/ */ /** * Include the composer autoloader. */ require_once __DIR__ . '/../../vendor/autoload.php';
tools/cli/skeletons/packages/src/class-example.php
<?php /** * Package description here * * @package automattic/package-name */ namespace Automattic\Jetpack; /** * Class description. */ class Package_Name { const PACKAGE_VERSION = '1.0.0-alpha'; }
tools/cli/helpers/doc-parser/runner.php
<?php /** * A runner file that is used by Jetpack CLI to start the parsing process. * * @package automattic/jetpack-doc-parser */ use Michelf\Markdown; /** * Loading the autoloader and starting the process. */ require __DIR__ . '/vendor/autoload.php'; $args = array_slice( $argv, 1 ); $parser = new \Automatti...
tools/cli/helpers/doc-parser/src/class-doc-parser.php
<?php /** * Package description here * * @package automattic/jetpack-doc-parser */ namespace Automattic\Jetpack; /** * Converts PHPDoc markup into a template ready for import to a WordPress blog. */ class Doc_Parser { const PACKAGE_VERSION = '0.1.0-alpha'; /** * Generate a JSON file containing the PHPDoc ...
projects/plugins/beta/jetpack-beta.php
<?php /** * Plugin Name: Jetpack Beta Tester * Plugin URI: https://jetpack.com/beta/ * Description: Use the Beta plugin to get a sneak peek at new features and test them on your site. * Version: 4.0.1-alpha * Author: Automattic * Author URI: https://jetpack.com/ * Update URI: https://jetpack.com/download-jetpack...
projects/plugins/beta/src/class-clicommand.php
<?php /** * Jetpack Beta Tester CLI controls * * @package automattic/jetpack-beta */ namespace Automattic\JetpackBeta; use WP_CLI; use WP_CLI_Command; if ( ! class_exists( 'WP_CLI_Command' ) ) { return; } /** * Control your local Jetpack Beta Tester plugin. */ class CliCommand extends WP_CLI_Command { /** ...
projects/plugins/beta/src/class-utils.php
<?php /** * Utilities class file for the Jetpack Beta plugin. * * @package automattic/jetpack-beta */ namespace Automattic\JetpackBeta; /** * Utilities class file for the Jetpack Beta plugin. */ class Utils { /** * Normalize a branch name. * * @param string $branch Branch name. * @return string Normal...
projects/plugins/beta/src/class-admin.php
<?php /** * Handles the Jetpack Admin functions. * * @package automattic/jetpack-beta */ namespace Automattic\JetpackBeta; use Automattic\Jetpack\Admin_UI\Admin_Menu; /** * Handles the Jetpack Beta plugin Admin functions. */ class Admin { /** * Admin page hook name. * * @var string|false */ private ...
projects/plugins/beta/src/class-autoupdateself.php
<?php /** * Allow the Jetpack Beta plugin to autoupdate itself. * * @package automattic/jetpack-beta */ namespace Automattic\JetpackBeta; use Composer\Semver\Comparator as Semver; use WP_Error; /** * Allow the Jetpack Beta plugin to autoupdate itself. * * This registers some hooks in its constructor to point ...
projects/plugins/beta/src/class-plugindataexception.php
<?php /** * Exception thrown when plugin data cannot be loaded. * * @package automattic/jetpack-beta */ namespace Automattic\JetpackBeta; use RuntimeException; /** * Exception thrown when plugin data cannot be loaded. */ class PluginDataException extends RuntimeException { }
projects/plugins/beta/src/class-plugin.php
<?php /** * The Plugin class handles all the stuff that varies between different plugins. * * @package automattic/jetpack-beta */ namespace Automattic\JetpackBeta; use Composer\Semver\Comparator as Semver; use InvalidArgumentException; use Plugin_Upgrader; use WP_Ajax_Upgrader_Skin; use WP_Error; /** * The Plug...
projects/plugins/beta/src/class-parsedownext.php
<?php /** * Extension for Parsedown. * * @package automattic/jetpack-beta */ // phpcs:disable WordPress.NamingConventions.ValidVariableName namespace Automattic\JetpackBeta; use Parsedown; /** * Extension for Parsedown. * * Adds linking of GitHub PRs. */ class ParsedownExt extends Parsedown { /** * Form...
projects/plugins/beta/src/class-hooks.php
<?php /** * Hooks class class file for the Jetpack Beta plugin. * * @package automattic/jetpack-beta */ namespace Automattic\JetpackBeta; use Jetpack; use Language_Pack_Upgrader; use Plugin_Upgrader; use WP_Ajax_Upgrader_Skin; use WP_Error; /** * Hooks class class file for the Jetpack Beta plugin. */ class Hoo...
projects/plugins/beta/src/admin/show-needed-updates.template.php
<?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase /** * Jetpack Beta wp-admin template to show needed updates. * * @package automattic/jetpack-beta */ use Automattic\JetpackBeta\Plugin; use Automattic\JetpackBeta\Utils; // Check that the file is not accessed directly. if ( ! defined( 'ABSPATH'...
projects/plugins/beta/src/admin/exception.template.php
<?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase /** * Template to display an exception. * * @package automattic/jetpack-beta */ // Check that the file is not accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } // @global Exception $exception Exception to display. if ( ! isset( $excep...
projects/plugins/beta/src/admin/plugin-select.template.php
<?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase /** * Jetpack Beta wp-admin page to select a plugin to manage. * * @package automattic/jetpack-beta */ use Automattic\JetpackBeta\Plugin; use Automattic\JetpackBeta\Utils; // Check that the file is not accessed directly. if ( ! defined( 'ABSPAT...
projects/plugins/beta/src/admin/toggles.template.php
<?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase /** * Jetpack Beta wp-admin page toggles template. * * @package automattic/jetpack-beta */ use Automattic\JetpackBeta\Admin; // Check that the file is not accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <span class="dops-foldab...
projects/plugins/beta/src/admin/plugin-manage.template.php
<?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase /** * Jetpack Beta wp-admin manage page contents. * * @package automattic/jetpack-beta */ use Automattic\JetpackBeta\Admin; use Automattic\JetpackBeta\Utils; use Composer\Semver\Semver; // Check that the file is not accessed directly. if ( ! de...
projects/plugins/beta/src/admin/header.template.php
<?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase /** * Jetpack Beta wp-admin page header. * * @package automattic/jetpack-beta */ use Automattic\JetpackBeta\Utils; // Check that the file is not accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <div class="jetpack-beta__bleeding-...
projects/plugins/beta/src/admin/notice.template.php
<?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase /** * Jetpack Beta wp-admin page notice. * * @package automattic/jetpack-beta */ use Automattic\JetpackBeta\Utils; // Check that the file is not accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } global $current_screen; // ----------...
projects/plugins/beta/src/admin/branch-card.template.php
<?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase /** * Template to display a branch card. * * @package automattic/jetpack-beta */ use Automattic\JetpackBeta\Utils; // Check that the file is not accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } // @global \Automattic\JetpackBeta\Plu...
projects/plugins/videopress/jetpack-videopress.php
<?php /** * * Plugin Name: Jetpack VideoPress * Plugin URI: https://wordpress.org/plugins/jetpack-videopress * Description: High quality, ad-free video. * Version: 1.8-alpha * Author: Automattic - Jetpack Video team * Author URI: https://jetpack.com/videopress/ * License: GPLv2 or later * Text Domain: jetpack-...
projects/plugins/videopress/tests/php/bootstrap.php
<?php /** * Bootstrap. * * @package automattic/ */ /** * Include the composer autoloader. */ require_once __DIR__ . '/../../vendor/autoload.php';
projects/plugins/videopress/src/class-jetpack-videopress-plugin.php
<?php /** * Primary class file for the Jetpack VideoPress plugin. * * @package automattic/jetpack-videopress-plugin-plugin */ if ( ! defined( 'ABSPATH' ) ) { exit; } use Automattic\Jetpack\Connection\Manager as Connection_Manager; use Automattic\Jetpack\Connection\Rest_Authentication as Connection_Rest_Authentic...
projects/plugins/inspect/functions.php
<?php use Automattic\Jetpack\Connection\Client; function jetpack_inspect_default_args( $args = array() ) { $defaults = array( 'method' => 'GET', 'body' => null, 'headers' => array(), ); return wp_parse_args( $args, $defaults ); } function jetpack_inspect_connection_request( $url, $args = array() ) { ...
projects/plugins/inspect/options.php
<?php use Automattic\Jetpack\Packages\Async_Option\Async_Option; use Automattic\Jetpack\Packages\Async_Option\Async_Options; use Automattic\Jetpack\Packages\Async_Option\Registry; use Automattic\Jetpack_Inspect\Options\Monitor_Status; use Automattic\Jetpack_Inspect\Options\Observer_Settings; /** * Functions to make ...
projects/plugins/inspect/jetpack-inspect.php
<?php /** * Jetpack Inspect plugin * * @link https://automattic.com * @since 0.1.0 * * @wordpress-plugin * Plugin Name: Jetpack Inspect * Version: 0.1.0-alpha * Plugin URI: https://automattic.com * Description: Inspect HTTP incoming and outgoing requests and responses. * Author: pyro...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
3