version
stringclasses
1 value
filename
stringlengths
9
97
text
stringlengths
28
341k
length
int32
28
341k
6.8
wp-content/themes/twentyeleven/showcase.php
<?php /** * Template Name: Showcase Template * * Description: A Page Template that showcases Sticky Posts, Asides, and Blog Posts. * * The showcase template in Twenty Eleven consists of a featured posts section using sticky posts, * another recent posts area (with the latest post shown in full and the rest as a l...
7,968
6.8
wp-content/themes/twentyfourteen/inc/widgets.php
<?php /** * Custom Widget for displaying specific post formats * * Displays posts from Aside, Quote, Video, Audio, Image, Gallery, and Link formats. * * @link https://developer.wordpress.org/themes/functionality/widgets/#developing-widgets * * @package WordPress * @subpackage Twenty_Fourteen * @since Twenty Fo...
11,127
6.8
wp-content/themes/twentytwentytwo/inc/patterns/page-layout-two-columns.php
<?php /** * Page layout with two columns. */ return array( 'title' => __( 'Page layout with two columns', 'twentytwentytwo' ), 'categories' => array( 'twentytwentytwo_pages' ), 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var(--wp--custom--spacing--large, 8rem)","bottom...
4,017
6.8
wp-includes/class-phpmailer.php
<?php /** * The PHPMailer class has been moved to the wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. */ if ( function_exists( '_deprecated_file' ) ) { _deprecated_file( basename( __FILE__ ), '5.5.0', WPINC . '/PHPMailer/PHPMailer.php', __( 'The PHPMailer class has been mo...
664
6.8
wp-includes/Requests/src/Exception/Http/Status407.php
<?php /** * Exception for 407 Proxy Authentication Required responses * * @package Requests\Exceptions */ namespace WpOrg\Requests\Exception\Http; use WpOrg\Requests\Exception\Http; /** * Exception for 407 Proxy Authentication Required responses * * @package Requests\Exceptions */ final class Status407 exten...
511
6.8
wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php
<?php /** * REST API: WP_REST_Settings_Controller class * * @package WordPress * @subpackage REST_API * @since 4.7.0 */ /** * Core class used to manage a site's settings via the REST API. * * @since 4.7.0 * * @see WP_REST_Controller */ class WP_REST_Settings_Controller extends WP_REST_Controller { /** ...
10,357
6.8
wp-includes/sodium_compat/src/Core/Ristretto255.php
<?php /** * Class ParagonIE_Sodium_Core_Ristretto255 */ class ParagonIE_Sodium_Core_Ristretto255 extends ParagonIE_Sodium_Core_Ed25519 { const crypto_core_ristretto255_HASHBYTES = 64; const HASH_SC_L = 48; const CORE_H2C_SHA256 = 1; const CORE_H2C_SHA512 = 2; /** * @param ParagonIE_Sodium_C...
21,884
6.8
wp-includes/ID3/module.audio-video.flv.php
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at https://github.com/JamesHeinrich/getID3 // // or https://www.getid3.org // // or http://getid3.sourceforge.net ...
27,122
6.8
wp-admin/includes/screen.php
<?php /** * WordPress Administration Screen API. * * @package WordPress * @subpackage Administration */ /** * Get the column headers for a screen * * @since 2.7.0 * * @param string|WP_Screen $screen The screen you want the headers for * @return string[] The column header labels keyed by column ID. */ funct...
6,378
6.8
wp-admin/network/freedoms.php
<?php /** * Network Freedoms administration panel. * * @package WordPress * @subpackage Multisite * @since 3.4.0 */ /** Load WordPress Administration Bootstrap */ require_once __DIR__ . '/admin.php'; require ABSPATH . 'wp-admin/freedoms.php';
251
6.8
wp-includes/ID3/module.audio.mp3.php
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at https://github.com/JamesHeinrich/getID3 // // or https://www.getid3.org // // or http://getid3.sourceforge.net ...
106,903
6.8
wp-content/themes/twentytwentyone/search.php
<?php /** * The template for displaying search results pages * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result * * @package WordPress * @subpackage Twenty_Twenty_One * @since Twenty Twenty-One 1.0 */ get_header(); if ( have_posts() ) { ?> <header class="page-header al...
1,647
6.8
wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php
<?php /** * REST API: WP_REST_Post_Types_Controller class * * @package WordPress * @subpackage REST_API * @since 4.7.0 */ /** * Core class to access post types via the REST API. * * @since 4.7.0 * * @see WP_REST_Controller */ class WP_REST_Post_Types_Controller extends WP_REST_Controller { /** * Constr...
14,283
6.8
wp-admin/index.php
<?php /** * Dashboard Administration Screen * * @package WordPress * @subpackage Administration */ /** Load WordPress Bootstrap */ require_once __DIR__ . '/admin.php'; /** Load WordPress dashboard API */ require_once ABSPATH . 'wp-admin/includes/dashboard.php'; wp_dashboard_setup(); wp_enqueue_script( 'dashboa...
7,864
6.8
wp-content/themes/twentytwentyfive/patterns/template-home-posts-grid-news-blog.php
<?php /** * Title: News blog with featured posts grid * Slug: twentytwentyfive/template-home-posts-grid-news-blog * Template Types: front-page, index, home * Inserter: no * * @package WordPress * @subpackage Twenty_Twenty_Five * @since Twenty Twenty-Five 1.0 */ ?> <!-- wp:template-part {"slug":"header-large-t...
8,743
6.8
wp-includes/cache.php
<?php /** * Object Cache API * * @link https://developer.wordpress.org/reference/classes/wp_object_cache/ * * @package WordPress * @subpackage Cache */ /** WP_Object_Cache class */ require_once ABSPATH . WPINC . '/class-wp-object-cache.php'; /** * Sets up Object Cache Global and assigns it. * * @since 2.0.0...
13,474
6.8
wp-content/themes/twentytwentyone/template-parts/header/excerpt-header.php
<?php /** * Displays the post header * * @package WordPress * @subpackage Twenty_Twenty_One * @since Twenty Twenty-One 1.0 */ // Don't show the title if the post-format is `aside` or `status`. $post_format = get_post_format(); if ( 'aside' === $post_format || 'status' === $post_format ) { return; } ?> <header ...
547
6.8
wp-admin/includes/class-wp-privacy-requests-table.php
<?php /** * List Table API: WP_Privacy_Requests_Table class * * @package WordPress * @subpackage Administration * @since 4.9.6 */ abstract class WP_Privacy_Requests_Table extends WP_List_Table { /** * Action name for the requests this table will work with. Classes * which inherit from WP_Privacy_Requests_T...
14,395
6.8
wp-includes/customize/class-wp-customize-media-control.php
<?php /** * Customize API: WP_Customize_Media_Control class * * @package WordPress * @subpackage Customize * @since 4.4.0 */ /** * Customize Media Control class. * * @since 4.2.0 * * @see WP_Customize_Control */ class WP_Customize_Media_Control extends WP_Customize_Control { /** * Control type. * * ...
9,415
6.8
wp-includes/pomo/streams.php
<?php /** * Classes, which help reading streams of data from files. * Based on the classes from Danilo Segan <danilo@kvota.net> * * @version $Id: streams.php 1157 2015-11-20 04:30:11Z dd32 $ * @package pomo * @subpackage streams */ if ( ! class_exists( 'POMO_Reader', false ) ) : #[AllowDynamicProperties] clas...
7,934
6.8
wp-content/themes/twentytwelve/single.php
<?php /** * The Template for displaying all single posts * * @package WordPress * @subpackage Twenty_Twelve * @since Twenty Twelve 1.0 */ get_header(); ?> <div id="primary" class="site-content"> <div id="content" role="main"> <?php while ( have_posts() ) : the_post(); ?> <?php get_templat...
1,047
6.8
wp-includes/SimplePie/library/SimplePie/Cache/Memcache.php
<?php /** * SimplePie * * A PHP-Based RSS and Atom Feed Framework. * Takes the hard work out of managing a complete RSS/Atom solution. * * Copyright (c) 2004-2022, Ryan Parman, Sam Sneddon, Ryan McCue, and contributors * All rights reserved. * * Redistribution and use in source and binary forms, with or witho...
2,447
6.8
wp-includes/Requests/src/Exception.php
<?php /** * Exception for HTTP requests * * @package Requests\Exceptions */ namespace WpOrg\Requests; use Exception as PHPException; /** * Exception for HTTP requests * * @package Requests\Exceptions */ class Exception extends PHPException { /** * Type of exception * * @var string */ protected $typ...
1,114
6.8
wp-content/themes/twentyten/category.php
<?php /** * Template for displaying Category Archive pages * * @package WordPress * @subpackage Twenty_Ten * @since Twenty Ten 1.0 */ get_header(); ?> <div id="container"> <div id="content" role="main"> <h1 class="page-title"> <?php /* translators: %s: Category title. */ printf( __( 'Cat...
990
6.8
wp-includes/class-wp-http-ixr-client.php
<?php /** * WP_HTTP_IXR_Client * * @package WordPress * @since 3.1.0 */ #[AllowDynamicProperties] class WP_HTTP_IXR_Client extends IXR_Client { public $scheme; /** * @var IXR_Error */ public $error; /** * @param string $server * @param string|false $path * @param int|false $port * @param ...
3,501
6.8
wp-content/themes/twentytwelve/category.php
<?php /** * The template for displaying Category pages * * Used to display archive-type pages for posts in a category. * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package WordPress * @subpackage Twenty_Twelve * @since Twenty Twelve 1.0 */ get_header(); ?> <section id="p...
1,516
6.8
wp-includes/rest-api/endpoints/class-wp-rest-block-renderer-controller.php
<?php /** * Block Renderer REST API: WP_REST_Block_Renderer_Controller class * * @package WordPress * @subpackage REST_API * @since 5.0.0 */ /** * Controller which provides REST endpoint for rendering a block. * * @since 5.0.0 * * @see WP_REST_Controller */ class WP_REST_Block_Renderer_Controller extends W...
5,834
6.8
wp-admin/includes/import.php
<?php /** * WordPress Administration Importer API. * * @package WordPress * @subpackage Administration */ /** * Retrieves the list of importers. * * @since 2.0.0 * * @global array $wp_importers * @return array */ function get_importers() { global $wp_importers; if ( is_array( $wp_importers ) ) { uasort...
6,617
6.8
wp-includes/SimplePie/src/Cache/MySQL.php
<?php /** * SimplePie * * A PHP-Based RSS and Atom Feed Framework. * Takes the hard work out of managing a complete RSS/Atom solution. * * Copyright (c) 2004-2022, Ryan Parman, Sam Sneddon, Ryan McCue, and contributors * All rights reserved. * * Redistribution and use in source and binary forms, with or witho...
15,558
6.8
wp-content/themes/twentyfourteen/page.php
<?php /** * The template for displaying all pages * * This is the template that displays all pages by default. * Please note that this is the WordPress construct of pages and that * other 'pages' on your WordPress site will use a different template. * * @package WordPress * @subpackage Twenty_Fourteen * @since...
1,179
6.8
wp-includes/blocks/avatar.php
<?php /** * Server-side rendering of the `core/avatar` block. * * @package WordPress */ /** * Renders the `core/avatar` block on the server. * * @since 6.0.0 * * @param array $attributes Block attributes. * @param string $content Block default content. * @param WP_Block $block Block instance. ...
5,745
6.8
wp-includes/blocks/comments-pagination-previous.php
<?php /** * Server-side rendering of the `core/comments-pagination-previous` block. * * @package WordPress */ /** * Renders the `core/comments-pagination-previous` block on the server. * * @since 6.0.0 * * @param array $attributes Block attributes. * @param string $content Block default content. * @...
1,790
6.8
wp-includes/version.php
<?php /** * WordPress Version * * Contains version information for the current WordPress release. * * @package WordPress * @since 1.2.0 */ /** * The WordPress version string. * * Holds the current version number for WordPress core. Used to bust caches * and to enable development mode for scripts when runnin...
1,088
6.8
wp-includes/class-wp-feed-cache-transient.php
<?php /** * Feed API: WP_Feed_Cache_Transient class * * @package WordPress * @subpackage Feed * @since 4.7.0 */ /** * Core class used to implement feed cache transients. * * @since 2.8.0 * @since 6.7.0 Now properly implements the SimplePie\Cache\Base interface. */ #[AllowDynamicProperties] class WP_Feed_Cac...
3,176
6.8
wp-content/themes/twentytwentyfive/patterns/template-search-news-blog.php
<?php /** * Title: News blog search results * Slug: twentytwentyfive/template-search-news-blog * Template Types: search * Viewport width: 1400 * Inserter: no * * @package WordPress * @subpackage Twenty_Twenty_Five * @since Twenty Twenty-Five 1.0 */ ?> <!-- wp:template-part {"slug":"header"} /--> <!-- wp:gro...
1,309
6.8
wp-content/themes/twentytwentyfour/patterns/testimonial-centered.php
<?php /** * Title: Centered testimonial * Slug: twentytwentyfour/testimonial-centered * Keywords: quote, review, about * Categories: testimonials, text * Viewport width: 1300 * Description: A centered testimonial section with an avatar, name, and job title. */ ?> <!-- wp:group {"metadata":{"name":"<?php echo es...
3,431
6.8
wp-content/themes/twentytwentyfour/patterns/page-portfolio-overview.php
<?php /** * Title: Portfolio project overview * Slug: twentytwentyfour/page-portfolio-overview * Categories: twentytwentyfour_page, featured * Keywords: starter * Block Types: core/post-content * Post Types: page, wp_template * Viewport width: 1400 * Description: A full portfolio page with a section for project...
785
6.8
wp-admin/includes/class-wp-site-health.php
<?php /** * Class for looking up a site's health based on a user's WordPress environment. * * @package WordPress * @subpackage Site_Health * @since 5.2.0 */ #[AllowDynamicProperties] class WP_Site_Health { private static $instance = null; private $is_acceptable_mysql_version; private $is_recommended_mysql_ve...
122,362
6.8
wp-includes/customize/class-wp-customize-filter-setting.php
<?php /** * Customize API: WP_Customize_Filter_Setting class * * @package WordPress * @subpackage Customize * @since 4.4.0 */ /** * A setting that is used to filter a value, but will not save the results. * * Results should be properly handled using another setting or callback. * * @since 3.4.0 * * @see W...
588
6.8
wp-includes/sodium_compat/namespaced/Core/Curve25519/Ge/P2.php
<?php namespace ParagonIE\Sodium\Core\Curve25519\Ge; class P2 extends \ParagonIE_Sodium_Core_Curve25519_Ge_P2 { }
116
6.8
wp-content/themes/twentytwentyfive/patterns/template-page-photo-blog.php
<?php /** * Title: Photo blog page * Slug: twentytwentyfive/template-page-photo-blog * Template Types: page * Viewport width: 1400 * * @package WordPress * @subpackage Twenty_Twenty_Five * @since Twenty Twenty-Five 1.0 */ ?> <!-- wp:template-part {"slug":"header"} /--> <!-- wp:group {"tagName":"main","style"...
1,222
6.8
wp-includes/ID3/module.tag.lyrics3.php
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at https://github.com/JamesHeinrich/getID3 // // or https://www.getid3.org // // or http://getid3.sourceforge.net ...
11,807
6.8
wp-includes/Requests/src/Exception/Transport/Curl.php
<?php /** * CURL Transport Exception. * * @package Requests\Exceptions */ namespace WpOrg\Requests\Exception\Transport; use WpOrg\Requests\Exception\Transport; /** * CURL Transport Exception. * * @package Requests\Exceptions */ final class Curl extends Transport { const EASY = 'cURLEasy'; const MULTI = '...
1,397
6.8
wp-includes/sodium_compat/src/Core/Curve25519/Fe.php
<?php if (class_exists('ParagonIE_Sodium_Core_Curve25519_Fe', false)) { return; } /** * Class ParagonIE_Sodium_Core_Curve25519_Fe * * This represents a Field Element */ class ParagonIE_Sodium_Core_Curve25519_Fe implements ArrayAccess { /** * @var array<int, int> */ protected $container = arr...
3,089
6.8
wp-includes/class-wp-image-editor-gd.php
<?php /** * WordPress GD Image Editor * * @package WordPress * @subpackage Image_Editor */ /** * WordPress Image Editor Class for Image Manipulation through GD * * @since 3.5.0 * * @see WP_Image_Editor */ class WP_Image_Editor_GD extends WP_Image_Editor { /** * GD Resource. * * @var resource|GdImage ...
20,162
6.8
wp-content/themes/twentytwentytwo/inc/patterns/general-video-header-details.php
<?php /** * Video with header and details block pattern */ return array( 'title' => __( 'Video with header and details', 'twentytwentytwo' ), 'categories' => array( 'featured', 'columns' ), 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var(--wp--custom--spacing--large, 8...
2,746
6.8
wp-content/themes/twentynineteen/index.php
<?php /** * The main template file * * This is the most generic template file in a WordPress theme * and one of the two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * E.g., it puts together the home page when no home.php file ex...
1,066
6.8
wp-includes/class-wp-block-supports.php
<?php /** * Block support flags. * * @package WordPress * * @since 5.6.0 */ /** * Class encapsulating and implementing Block Supports. * * @since 5.6.0 * * @access private */ #[AllowDynamicProperties] class WP_Block_Supports { /** * Config. * * @since 5.6.0 * @var array */ private $block_suppo...
5,626
6.8
wp-includes/blocks/latest-posts.php
<?php /** * Server-side rendering of the `core/latest-posts` block. * * @package WordPress */ /** * The excerpt length set by the Latest Posts core block * set at render time and used by the block itself. * * @var int */ global $block_core_latest_posts_excerpt_length; $block_core_latest_posts_excerpt_length =...
8,542
6.8
wp-content/themes/twentythirteen/content-image.php
<?php /** * The template for displaying posts in the Image post format * * @package WordPress * @subpackage Twenty_Thirteen * @since Twenty Thirteen 1.0 */ ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <header class="entry-header"> <?php if ( is_single() ) : ?> <h1 class="entry-title"><?p...
1,913
6.8
wp-content/themes/twentythirteen/functions.php
<?php /** * Twenty Thirteen functions and definitions * * Sets up the theme and provides some helper functions, which are used in the * theme as custom template tags. Others are attached to action and filter * hooks in WordPress to change core functionality. * * When using a child theme you can override certain ...
28,615
6.8
wp-admin/includes/class-wp-filesystem-ftpext.php
<?php /** * WordPress FTP Filesystem. * * @package WordPress * @subpackage Filesystem */ /** * WordPress Filesystem Class for implementing FTP. * * @since 2.5.0 * * @see WP_Filesystem_Base */ class WP_Filesystem_FTPext extends WP_Filesystem_Base { /** * @since 2.5.0 * @var resource */ public $link;...
23,101
6.8
wp-includes/block-patterns/query-offset-posts.php
<?php /** * Query: Offset. * * @package WordPress */ return array( 'title' => _x( 'Offset', 'Block pattern title' ), 'blockTypes' => array( 'core/query' ), 'categories' => array( 'query' ), 'content' => '<!-- wp:group {"style":{"spacing":{"padding":{"top":"30px","right":"30px","bottom":"30px","left":"3...
2,004
6.8
wp-content/themes/twentytwentyfive/patterns/page-landing-book.php
<?php /** * Title: Landing page for book * Slug: twentytwentyfive/page-landing-book * Categories: twentytwentyfive_page, featured * Keywords: starter * Block Types: core/post-content * Post Types: page, wp_template * Viewport width: 1400 * Description: A landing page for the book with a hero section, pre-order ...
848
6.8
wp-includes/robots-template.php
<?php /** * Robots template functions. * * @package WordPress * @subpackage Robots * @since 5.7.0 */ /** * Displays the robots meta tag as necessary. * * Gathers robots directives to include for the current context, using the * {@see 'wp_robots'} filter. The directives are then sanitized, and the * robots m...
5,185
6.8
wp-includes/class-wp-simplepie-sanitize-kses.php
<?php /** * Feed API: WP_SimplePie_Sanitize_KSES class * * @package WordPress * @subpackage Feed * @since 4.7.0 */ // Don't load directly. if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } /** * Core class used to implement SimplePie feed sanitization. * * Extends the SimplePie\Sanitize class to use KSES, beca...
1,910
6.8
wp-content/themes/twentytwentytwo/inc/patterns/general-image-with-caption.php
<?php /** * Image with caption block pattern */ return array( 'title' => __( 'Image with caption', 'twentytwentytwo' ), 'categories' => array( 'featured', 'columns', 'gallery' ), 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"6rem","bottom":"6rem"}},"elements":{"link":{"c...
1,606
6.8
wp-content/themes/twentysixteen/inc/block-patterns.php
<?php /** * Twenty Sixteen Theme: Block Patterns * * @package WordPress * @subpackage Twenty_Sixteen * @since Twenty Sixteen 2.3 */ /** * Register Block Pattern Category. */ if ( function_exists( 'register_block_pattern_category' ) ) { register_block_pattern_category( 'twentysixteen', array( 'label' => _...
7,559
6.8
wp-content/themes/twentytwentytwo/inc/patterns/header-centered-logo.php
<?php /** * Header with centered logo block pattern */ return array( 'title' => __( 'Header with centered logo', 'twentytwentytwo' ), 'categories' => array( 'header' ), 'blockTypes' => array( 'core/template-part/header' ), 'content' => '<!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"...
1,861
6.8
wp-includes/block-supports/layout.php
<?php /** * Layout block support flag. * * @package WordPress * @since 5.8.0 */ /** * Returns layout definitions, keyed by layout type. * * Provides a common definition of slugs, classnames, base styles, and spacing styles for each layout type. * When making changes or additions to layout definitions, the cor...
39,429
6.8
wp-includes/blocks/read-more.php
<?php /** * Server-side rendering of the `core/read-more` block. * * @package WordPress */ /** * Renders the `core/read-more` block on the server. * * @since 6.0.0 * * @param array $attributes Block attributes. * @param string $content Block default content. * @param WP_Block $block Block insta...
1,830
6.8
wp-includes/interactivity-api/class-wp-interactivity-api.php
<?php /** * Interactivity API: WP_Interactivity_API class. * * @package WordPress * @subpackage Interactivity API * @since 6.5.0 */ /** * Class used to process the Interactivity API on the server. * * @since 6.5.0 */ final class WP_Interactivity_API { /** * Holds the mapping of directive attribute names t...
44,757
6.8
wp-content/themes/twentytwentyone/inc/block-patterns.php
<?php /** * Block Patterns * * @link https://developer.wordpress.org/reference/functions/register_block_pattern/ * @link https://developer.wordpress.org/reference/functions/register_block_pattern_category/ * * @package WordPress * @subpackage Twenty_Twenty_One * @since Twenty Twenty-One 1.0 */ if ( function_e...
20,515
6.8
wp-includes/class-oembed.php
<?php /** * API for fetching the HTML to embed remote content based on a provided URL. * * This file is deprecated, use 'wp-includes/class-wp-oembed.php' instead. * * @deprecated 5.3.0 * @package WordPress * @subpackage oEmbed */ _deprecated_file( basename( __FILE__ ), '5.3.0', WPINC . '/class-wp-oembed.php' )...
401
6.8
wp-includes/class-wp-simplepie-file.php
<?php /** * Feed API: WP_SimplePie_File class * * @package WordPress * @subpackage Feed * @since 4.7.0 */ /** * Core class for fetching remote files and reading local files with SimplePie. * * This uses Core's HTTP API to make requests, which gives plugins the ability * to hook into the process. * * @since...
3,408
6.8
wp-includes/blocks/post-terms.php
<?php /** * Server-side rendering of the `core/post-terms` block. * * @package WordPress */ /** * Renders the `core/post-terms` block on the server. * * @since 5.8.0 * * @param array $attributes Block attributes. * @param string $content Block default content. * @param WP_Block $block Block ins...
3,640
6.8
wp-includes/Requests/src/Utility/CaseInsensitiveDictionary.php
<?php /** * Case-insensitive dictionary, suitable for HTTP headers * * @package Requests\Utilities */ namespace WpOrg\Requests\Utility; use ArrayAccess; use ArrayIterator; use IteratorAggregate; use ReturnTypeWillChange; use WpOrg\Requests\Exception; /** * Case-insensitive dictionary, suitable for HTTP headers ...
2,507
6.8
wp-content/themes/twentynineteen/functions.php
<?php /** * Twenty Nineteen functions and definitions * * @link https://developer.wordpress.org/themes/basics/theme-functions/ * * @package WordPress * @subpackage Twenty_Nineteen * @since Twenty Nineteen 1.0 */ /** * Twenty Nineteen only works in WordPress 4.7 or later. */ if ( version_compare( $GLOBALS['wp...
11,751
6.8
wp-admin/includes/export.php
<?php /** * WordPress Export Administration API * * @package WordPress * @subpackage Administration */ /** * Version number for the export format. * * Bump this when something changes that might affect compatibility. * * @since 2.5.0 */ define( 'WXR_VERSION', '1.2' ); /** * Generates the WXR export file f...
25,565
6.8
wp-content/themes/twentyseventeen/archive.php
<?php /** * The template for displaying archive pages * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package WordPress * @subpackage Twenty_Seventeen * @since Twenty Seventeen 1.0 * @version 1.0 */ get_header(); ?> <div class="wrap"> <?php if ( have_posts() ) : ?> <heade...
1,981
6.8
wp-admin/ms-themes.php
<?php /** * Multisite themes administration panel. * * @package WordPress * @subpackage Multisite * @since 3.0.0 */ require_once __DIR__ . '/admin.php'; wp_redirect( network_admin_url( 'themes.php' ) ); exit;
217
6.8
wp-admin/includes/deprecated.php
<?php /** * Deprecated admin functions from past WordPress versions. You shouldn't use these * functions and look for the alternatives instead. The functions will be removed * in a later version. * * @package WordPress * @subpackage Deprecated */ /* * Deprecated functions come here to die. */ /** * @since 2...
41,776
6.8
wp-includes/widgets/class-wp-widget-custom-html.php
<?php /** * Widget API: WP_Widget_Custom_HTML class * * @package WordPress * @subpackage Widgets * @since 4.8.1 */ /** * Core class used to implement a Custom HTML widget. * * @since 4.8.1 * * @see WP_Widget */ class WP_Widget_Custom_HTML extends WP_Widget { /** * Whether or not the widget has been reg...
12,042
6.8
wp-includes/rest-api/search/class-wp-rest-term-search-handler.php
<?php /** * REST API: WP_REST_Term_Search_Handler class * * @package WordPress * @subpackage REST_API * @since 5.6.0 */ /** * Core class representing a search handler for terms in the REST API. * * @since 5.6.0 * * @see WP_REST_Search_Handler */ class WP_REST_Term_Search_Handler extends WP_REST_Search_Hand...
4,634
6.8
wp-admin/includes/class-core-upgrader.php
<?php /** * Upgrade API: Core_Upgrader class * * @package WordPress * @subpackage Upgrader * @since 4.6.0 */ /** * Core class used for updating core. * * It allows for WordPress to upgrade itself in combination with * the wp-admin/includes/update-core.php file. * * Note: Newly introduced functions and meth...
15,191
6.8
wp-includes/html-api/class-wp-html-decoder.php
<?php /** * HTML API: WP_HTML_Decoder class * * Decodes spans of raw text found inside HTML content. * * @package WordPress * @subpackage HTML-API * @since 6.6.0 */ class WP_HTML_Decoder { /** * Indicates if an attribute value starts with a given raw string value. * * Use this method to determine if an ...
16,689
6.8
wp-includes/spl-autoload-compat.php
<?php /** * Polyfill for SPL autoload feature. This file is separate to prevent compiler notices * on the deprecated __autoload() function. * * See https://core.trac.wordpress.org/ticket/41134 * * @deprecated 5.3.0 No longer needed as the minimum PHP requirement has moved beyond PHP 5.3. * * @package PHP * @ac...
441
6.8
wp-admin/edit-form-comment.php
<?php /** * Edit comment form for inclusion in another file. * * @package WordPress * @subpackage Administration */ // Don't load directly. if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } /** * @global WP_Comment $comment Global comment object. */ global $comment; ?> <form name="post" action="comment.php" meth...
8,543
6.8
wp-includes/class-wp-block-templates-registry.php
<?php /** * Templates registry functions. * * @package WordPress * @since 6.7.0 */ /** * Core class used for interacting with templates. * * @since 6.7.0 */ final class WP_Block_Templates_Registry { /** * Registered templates, as `$name => $instance` pairs. * * @since 6.7.0 * @var WP_Block_Template[]...
7,231
6.8
wp-admin/themes.php
<?php /** * Themes administration panel. * * @package WordPress * @subpackage Administration */ /** WordPress Administration Bootstrap */ require_once __DIR__ . '/admin.php'; if ( ! current_user_can( 'switch_themes' ) && ! current_user_can( 'edit_theme_options' ) ) { wp_die( '<h1>' . __( 'You need a higher le...
49,276
6.8
wp-includes/comment-template.php
<?php /** * Comment template functions * * These functions are meant to live inside of the WordPress loop. * * @package WordPress * @subpackage Template */ /** * Retrieves the author of the current comment. * * If the comment has an empty comment_author field, then 'Anonymous' person is * assumed. * * @si...
102,882
6.8
wp-includes/sodium_compat/src/Core32/XChaCha20.php
<?php if (class_exists('ParagonIE_Sodium_Core32_XChaCha20', false)) { return; } /** * Class ParagonIE_Sodium_Core32_XChaCha20 */ class ParagonIE_Sodium_Core32_XChaCha20 extends ParagonIE_Sodium_Core32_HChaCha20 { /** * @internal You should not use this directly from another application * * @p...
2,454
6.8
wp-admin/edit-form-advanced.php
<?php /** * Post advanced form for inclusion in the administration panels. * * @package WordPress * @subpackage Administration */ // Don't load directly. if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } /** * @global string $post_type Global post type. * @global WP_Post_Type $post_type_object Globa...
29,527
6.8
wp-admin/edit-comments.php
<?php /** * Edit Comments Administration Screen. * * @package WordPress * @subpackage Administration */ /** WordPress Administration Bootstrap */ require_once __DIR__ . '/admin.php'; if ( ! current_user_can( 'edit_posts' ) ) { wp_die( '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . '<p>' ...
14,726
6.8
wp-content/themes/twentytwentyfive/patterns/cta-book-links.php
<?php /** * Title: Call to action with book links * Slug: twentytwentyfive/cta-book-links * Categories: call-to-action * Description: A call to action section with links to get the book in different websites. * * @package WordPress * @subpackage Twenty_Twenty_Five * @since Twenty Twenty-Five 1.0 */ ?> <!-- wp...
3,364
6.8
wp-content/themes/twentytwentyfive/patterns/template-query-loop-news-blog.php
<?php /** * Title: News blog query loop * Slug: twentytwentyfive/template-query-loop-news-blog * Inserter: no * * @package WordPress * @subpackage Twenty_Twenty_Five * @since Twenty Twenty-Five 1.0 */ ?> <!-- wp:query {"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date"...
3,444
6.8
wp-content/themes/twentytwenty/template-parts/entry-header.php
<?php /** * Displays the post header * * @package WordPress * @subpackage Twenty_Twenty * @since Twenty Twenty 1.0 */ $entry_header_classes = ''; if ( is_singular() ) { $entry_header_classes .= ' header-footer-group'; } ?> <header class="entry-header has-text-align-center<?php echo esc_attr( $entry_header_cl...
1,935
6.8
wp-includes/SimplePie/library/SimplePie/Registry.php
<?php /** * SimplePie * * A PHP-Based RSS and Atom Feed Framework. * Takes the hard work out of managing a complete RSS/Atom solution. * * Copyright (c) 2004-2022, Ryan Parman, Sam Sneddon, Ryan McCue, and contributors * All rights reserved. * * Redistribution and use in source and binary forms, with or witho...
2,411
6.8
wp-admin/includes/theme-install.php
<?php /** * WordPress Theme Installation Administration API * * @package WordPress * @subpackage Administration */ $themes_allowedtags = array( 'a' => array( 'href' => array(), 'title' => array(), 'target' => array(), ), 'abbr' => array( 'title' => array() ), 'acronym' => array( 'title' => a...
6,990
6.8
wp-admin/includes/bookmark.php
<?php /** * WordPress Bookmark Administration API * * @package WordPress * @subpackage Administration */ /** * Adds a link using values provided in $_POST. * * @since 2.0.0 * * @return int|WP_Error Value 0 or WP_Error on failure. The link ID on success. */ function add_link() { return edit_link(); } /** ...
11,725
6.8
wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php
<?php /** * REST API: WP_REST_Widgets_Controller class * * @package WordPress * @subpackage REST_API * @since 5.8.0 */ /** * Core class to access widgets via the REST API. * * @since 5.8.0 * * @see WP_REST_Controller */ class WP_REST_Widgets_Controller extends WP_REST_Controller { /** * Tracks whether ...
26,893
6.8
wp-includes/ID3/module.audio-video.quicktime.php
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at https://github.com/JamesHeinrich/getID3 // // or https://www.getid3.org // // or http://getid3.sourceforge.net ...
167,005
6.8
wp-includes/blocks/comments-pagination-next.php
<?php /** * Server-side rendering of the `core/comments-pagination-next` block. * * @package WordPress */ /** * Renders the `core/comments-pagination-next` block on the server. * * @since 6.0.0 * * @param array $attributes Block attributes. * @param string $content Block default content. * @param WP...
1,924
6.8
wp-admin/includes/class-pclzip.php
<?php // -------------------------------------------------------------------------------- // PhpConcept Library - Zip Module 2.8.2 // -------------------------------------------------------------------------------- // License GNU/LGPL - Vincent Blavet - August 2009 // http://www.phpconcept.net // ----------------------...
196,695
6.8
wp-admin/network/setup.php
<?php /** * Network Setup administration panel. * * @package WordPress * @subpackage Multisite * @since 3.1.0 */ /** Load WordPress Administration Bootstrap */ require_once __DIR__ . '/admin.php'; require ABSPATH . 'wp-admin/network.php';
247
6.8
wp-includes/SimplePie/src/Core.php
<?php /** * SimplePie * * A PHP-Based RSS and Atom Feed Framework. * Takes the hard work out of managing a complete RSS/Atom solution. * * Copyright (c) 2004-2016, Ryan Parman, Sam Sneddon, Ryan McCue, and contributors * All rights reserved. * * Redistribution and use in source and binary forms, with or withou...
2,235
6.8
wp-content/themes/twentytwelve/author.php
<?php /** * The template for displaying Author Archive pages * * Used to display archive-type pages for posts by an author. * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package WordPress * @subpackage Twenty_Twelve * @since Twenty Twelve 1.0 */ get_header(); ?> <section ...
2,705
6.8
wp-admin/user/about.php
<?php /** * User Dashboard About administration panel. * * @package WordPress * @subpackage Administration * @since 3.4.0 */ /** Load WordPress Administration Bootstrap */ require_once __DIR__ . '/admin.php'; require ABSPATH . 'wp-admin/about.php';
257
6.8
wp-includes/ID3/module.tag.apetag.php
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at https://github.com/JamesHeinrich/getID3 // // or https://www.getid3.org // // or http://getid3.sourceforge.net ...
18,903
6.8
wp-admin/includes/class-wp-debug-data.php
<?php /** * Class for providing debug data based on a users WordPress environment. * * @package WordPress * @subpackage Site_Health * @since 5.2.0 */ #[AllowDynamicProperties] class WP_Debug_Data { /** * Calls all core functions to check for updates. * * @since 5.2.0 */ public static function check_for...
66,619