diff --git a/composer.json b/composer.json index 9562055..c71c1e5 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ "require-dev": { "php": "~7.3 || ~8.0", "nikic/php-parser": "< 4.12.0", - "php-stubs/generator": "^0.8.1", + "php-stubs/generator": "^0.8.3", "phpdocumentor/reflection-docblock": "^5.3", "phpstan/phpstan": "^1.2" }, diff --git a/wordpress-stubs.php b/wordpress-stubs.php index fc9c0ad..58ec3f7 100644 --- a/wordpress-stubs.php +++ b/wordpress-stubs.php @@ -881,13 +881,6 @@ class Custom_Background * @since 3.0.0 */ public $admin_image_div_callback; - /** - * Used to trigger a success message when settings updated and set to true. - * - * @since 3.0.0 - * @var bool - */ - private $updated; /** * Constructor - Registers administration header callback. * @@ -1012,13 +1005,6 @@ class Custom_Image_Header * @since 3.0.0 */ public $default_headers = array(); - /** - * Used to trigger a success message when settings updated and set to true. - * - * @since 3.0.0 - * @var bool - */ - private $updated; /** * Constructor - Register administration header callback. * @@ -2740,7 +2726,6 @@ class Plugin_Installer_Skin extends \WP_Upgrader_Skin public $type; public $url; public $overwrite; - private $is_downgrading = \false; /** * @param array $args */ @@ -2774,16 +2759,6 @@ public function hide_process_failed($wp_error) public function after() { } - /** - * Check if the plugin can be overwritten and output the HTML for overwriting a plugin on upload. - * - * @since 5.5.0 - * - * @return bool Whether the plugin can be overwritten and HTML was outputted. - */ - private function do_overwrite() - { - } } /** * Upgrader API: Plugin_Upgrader_Skin class @@ -3084,7 +3059,6 @@ class Theme_Installer_Skin extends \WP_Upgrader_Skin public $type; public $url; public $overwrite; - private $is_downgrading = \false; /** * @param array $args */ @@ -3118,16 +3092,6 @@ public function hide_process_failed($wp_error) public function after() { } - /** - * Check if the theme can be overwritten and output the HTML for overwriting a theme on upload. - * - * @since 5.5.0 - * - * @return bool Whether the theme can be overwritten and HTML was outputted. - */ - private function do_overwrite() - { - } } /** * Upgrader API: Theme_Upgrader_Skin class @@ -4119,20 +4083,6 @@ class WP_List_Table * @var WP_Screen */ protected $screen; - /** - * Cached bulk actions. - * - * @since 3.1.0 - * @var array - */ - private $_actions; - /** - * Cached pagination output. - * - * @since 3.1.0 - * @var string - */ - private $_pagination; /** * The view switcher modes. * @@ -5013,7 +4963,6 @@ class WP_Comments_List_Table extends \WP_List_Table public $checkbox = \true; public $pending_count = array(); public $extra_items; - private $user_can; /** * Constructor. * @@ -7881,18 +7830,6 @@ final class WP_Internal_Pointers public static function enqueue_scripts($hook_suffix) { } - /** - * Print the pointer JavaScript data. - * - * @since 3.3.0 - * - * @param string $pointer_id The pointer ID. - * @param string $selector The HTML elements, on which the pointer should be attached. - * @param array $args Arguments to be passed to the pointer JS (see wp-pointer.js). - */ - private static function print_js($pointer_id, $selector, $args) - { - } public static function pointer_wp330_toolbar() { } @@ -8196,8 +8133,6 @@ class WP_Media_List_Table extends \WP_List_Table * @var array */ protected $comment_pending_count = array(); - private $detached; - private $is_trash; /** * Constructor. * @@ -8381,14 +8316,6 @@ public function display_rows() protected function get_default_primary_column_name() { } - /** - * @param WP_Post $post - * @param string $att_title - * @return array - */ - private function _get_row_actions($post, $att_title) - { - } /** * Generates and displays row action links. * @@ -8658,7 +8585,6 @@ class WP_MS_Themes_List_Table extends \WP_List_Table { public $site_id; public $is_site_themes; - private $has_items; /** * Whether to show the auto-updates UI. * @@ -9066,7 +8992,6 @@ class WP_Plugin_Install_List_Table extends \WP_List_Table public $order = 'ASC'; public $orderby = \null; public $groups = array(); - private $error; /** * @return bool */ @@ -9161,14 +9086,6 @@ protected function get_table_classes() public function get_columns() { } - /** - * @param object $plugin_a - * @param object $plugin_b - * @return int - */ - private function order_callback($plugin_a, $plugin_b) - { - } public function display_rows() { } @@ -9420,21 +9337,6 @@ class WP_Posts_List_Table extends \WP_List_Table * @var array */ protected $comment_pending_count; - /** - * Holds the number of posts for this user. - * - * @since 3.1.0 - * @var int - */ - private $user_posts_count; - /** - * Holds the number of posts which are sticky. - * - * @since 3.1.0 - * @var int - */ - private $sticky_posts_count = 0; - private $is_trash; /** * Current level for output. * @@ -9594,41 +9496,6 @@ protected function get_sortable_columns() public function display_rows($posts = array(), $level = 0) { } - /** - * @param array $posts - * @param int $level - */ - private function _display_rows($posts, $level = 0) - { - } - /** - * @global wpdb $wpdb WordPress database abstraction object. - * @global WP_Post $post Global post object. - * @param array $pages - * @param int $pagenum - * @param int $per_page - */ - private function _display_rows_hierarchical($pages, $pagenum = 1, $per_page = 20) - { - } - /** - * Given a top level page ID, display the nested hierarchy of sub-pages - * together with paging support - * - * @since 3.1.0 (Standalone function exists since 2.6.0) - * @since 4.2.0 Added the `$to_display` parameter. - * - * @param array $children_pages - * @param int $count - * @param int $parent_page - * @param int $level - * @param int $pagenum - * @param int $per_page - * @param array $to_display List of pages to be displayed. Passed by reference. - */ - private function _page_rows(&$children_pages, &$count, $parent_page, $level, $pagenum, $per_page, &$to_display) - { - } /** * Handles the checkbox column output. * @@ -10066,15 +9933,6 @@ public function column_next_steps($item) #[\AllowDynamicProperties] final class WP_Privacy_Policy_Content { - private static $policy_content = array(); - /** - * Constructor - * - * @since 4.9.6 - */ - private function __construct() - { - } /** * Add content to the postbox shown when editing the privacy policy. * @@ -10210,13 +10068,6 @@ final class WP_Screen * @var string */ public $base; - /** - * The number of columns to display. Access with get_columns(). - * - * @since 3.4.0 - * @var int - */ - private $columns = 0; /** * The unique ID of the screen. * @@ -10224,13 +10075,6 @@ final class WP_Screen * @var string */ public $id; - /** - * Which admin the screen is in. network | user | site | false - * - * @since 3.5.0 - * @var string - */ - protected $in_admin; /** * Whether the screen is in the network admin. * @@ -10290,62 +10134,6 @@ final class WP_Screen * @var string */ public $taxonomy; - /** - * The help tab data associated with the screen, if any. - * - * @since 3.3.0 - * @var array - */ - private $_help_tabs = array(); - /** - * The help sidebar data associated with screen, if any. - * - * @since 3.3.0 - * @var string - */ - private $_help_sidebar = ''; - /** - * The accessible hidden headings and text associated with the screen, if any. - * - * @since 4.4.0 - * @var array - */ - private $_screen_reader_content = array(); - /** - * Stores old string-based help. - * - * @var array - */ - private static $_old_compat_help = array(); - /** - * The screen options associated with screen, if any. - * - * @since 3.3.0 - * @var array - */ - private $_options = array(); - /** - * The screen object registry. - * - * @since 3.3.0 - * - * @var array - */ - private static $_registry = array(); - /** - * Stores the result of the public show_screen_options function. - * - * @since 3.3.0 - * @var bool - */ - private $_show_screen_options; - /** - * Stores the 'screen_settings' section of screen options. - * - * @since 3.3.0 - * @var string - */ - private $_screen_settings; /** * Whether the screen is using the block editor. * @@ -10380,14 +10168,6 @@ public static function get($hook_name = '') public function set_current_screen() { } - /** - * Constructor - * - * @since 3.3.0 - */ - private function __construct() - { - } /** * Indicates whether the screen is in a particular admin. * @@ -10895,21 +10675,12 @@ public function test_accepts_minor_updates() #[\AllowDynamicProperties] class WP_Site_Health { - private static $instance = \null; - private $is_acceptable_mysql_version; - private $is_recommended_mysql_version; public $is_mariadb = \false; - private $mysql_server_version = ''; - private $mysql_required_version = '5.5'; - private $mysql_recommended_version = '5.7'; - private $mariadb_recommended_version = '10.3'; public $php_memory_limit; public $schedules; public $crons; public $last_missed_cron = \null; public $last_late_cron = \null; - private $timeout_missed_cron = \null; - private $timeout_late_cron = \null; /** * WP_Site_Health constructor. * @@ -10946,30 +10717,6 @@ public static function get_instance() public function enqueue_scripts() { } - /** - * Runs a Site Health test directly. - * - * @since 5.4.0 - * - * @param callable $callback - * @return mixed|void - */ - private function perform_test($callback) - { - } - /** - * Runs the SQL version checks. - * - * These values are used in later tests, but the part of preparing them is more easily managed - * early in the class for ease of access and discovery. - * - * @since 5.2.0 - * - * @global wpdb $wpdb WordPress database abstraction object. - */ - private function prepare_sql_data() - { - } /** * Tests whether `wp_version_check` is blocked. * @@ -11034,23 +10781,6 @@ public function get_test_theme_version() public function get_test_php_version() { } - /** - * Checks if the passed extension or function are available. - * - * Make the check for available PHP modules into a simple boolean operator for a cleaner test runner. - * - * @since 5.2.0 - * @since 5.3.0 The `$constant_name` and `$class_name` parameters were added. - * - * @param string $extension_name Optional. The extension name to test. Default null. - * @param string $function_name Optional. The function name to test. Default null. - * @param string $constant_name Optional. The constant name to test for. Default null. - * @param string $class_name Optional. The class name to test for. Default null. - * @return bool Whether or not the extension and function are available. - */ - private function test_php_extension_availability($extension_name = \null, $function_name = \null, $constant_name = \null, $class_name = \null) - { - } /** * Tests if required PHP modules are installed on the host. * @@ -11300,22 +11030,6 @@ public static function get_tests() public function admin_body_class($body_class) { } - /** - * Initiates the WP_Cron schedule test cases. - * - * @since 5.2.0 - */ - private function wp_schedule_test_init() - { - } - /** - * Populates the list of cron events and store them to a class-wide variable. - * - * @since 5.2.0 - */ - private function get_cron_tasks() - { - } /** * Checks if any scheduled tasks have been missed. * @@ -11410,54 +11124,6 @@ public function is_development_environment() public function get_page_cache_headers() { } - /** - * Checks if site has page cache enabled or not. - * - * @since 6.1.0 - * - * @return WP_Error|array { - * Page cache detection details or else error information. - * - * @type bool $advanced_cache_present Whether a page cache plugin is present. - * @type array[] $page_caching_response_headers Sets of client caching headers for the responses. - * @type float[] $response_timing Response timings. - * } - * @phpstan-return \WP_Error|array{ - * advanced_cache_present: bool, - * page_caching_response_headers: array[], - * response_timing: float[], - * } - */ - private function check_for_page_caching() - { - } - /** - * Gets page cache details. - * - * @since 6.1.0 - * - * @return WP_Error|array { - * Page cache detail or else a WP_Error if unable to determine. - * - * @type string $status Page cache status. Good, Recommended or Critical. - * @type bool $advanced_cache_present Whether page cache plugin is available or not. - * @type string[] $headers Client caching response headers detected. - * @type float $response_time Response time of site. - * } - */ - private function get_page_cache_detail() - { - } - /** - * Gets the threshold below which a response time is considered good. - * - * @since 6.1.0 - * - * @return int Threshold in milliseconds. - */ - private function get_good_response_time_threshold() - { - } /** * Determines whether to suggest using a persistent object cache. * @@ -11470,16 +11136,6 @@ private function get_good_response_time_threshold() public function should_suggest_persistent_object_cache() { } - /** - * Returns a list of available persistent object cache services. - * - * @since 6.1.0 - * - * @return string[] The list of available persistent object cache services. - */ - private function available_object_cache_services() - { - } } /** * Administration API: WP_Site_Icon class @@ -11636,7 +11292,6 @@ public function get_post_metadata($value, $post_id, $meta_key, $single) class WP_Terms_List_Table extends \WP_List_Table { public $callback_args; - private $level; /** * Constructor. * @@ -11699,19 +11354,6 @@ protected function get_sortable_columns() public function display_rows_or_placeholder() { } - /** - * @param string $taxonomy - * @param array $terms - * @param array $children - * @param int $start - * @param int $per_page - * @param int $count - * @param int $parent_term - * @param int $level - */ - private function _rows($taxonomy, $terms, &$children, $start, $per_page, &$count, $parent_term = 0, $level = 0) - { - } /** * @global string $taxonomy * @param WP_Term $tag Term object. @@ -12029,17 +11671,6 @@ public function install_theme_info($theme) public function _js_vars($extra_args = array()) { } - /** - * Check to see if the theme is already installed. - * - * @since 3.4.0 - * - * @param stdClass $theme A WordPress.org Theme API object. - * @return string Theme status. - */ - private function _get_theme_status($theme) - { - } } /** * List Table API: WP_Users_List_Table class @@ -13501,12 +13132,6 @@ public function error($message) public function warning($message) { } - /** - * @return bool - */ - private function CleanUp() - { - } /** * Return array containing information about all supported formats. * @@ -13640,10 +13265,6 @@ abstract class getid3_handler * @var int */ protected $data_string_length = 0; - /** - * @var string - */ - private $dependency_to; /** * getid3_handler constructor. * @@ -14207,109 +13828,12 @@ class getid3_matroska extends \getid3_handler * @var bool */ public $parse_whole_file = \false; - /* - * Private parser settings/placeholders. - */ - private $EBMLbuffer = ''; - private $EBMLbuffer_offset = 0; - private $EBMLbuffer_length = 0; - private $current_offset = 0; - private $unuseful_elements = array(\EBML_ID_CRC32, \EBML_ID_VOID); /** * @return bool */ public function Analyze() { } - /** - * @param array $info - */ - private function parseEBML(&$info) - { - } - /** - * @param int $min_data - * - * @return bool - */ - private function EnsureBufferHasEnoughData($min_data = 1024) - { - } - /** - * @return int|float|false - */ - private function readEBMLint() - { - } - /** - * @param int $length - * @param bool $check_buffer - * - * @return string|false - */ - private function readEBMLelementData($length, $check_buffer = \false) - { - } - /** - * @param array $element - * @param int $parent_end - * @param array|bool $get_data - * - * @return bool - */ - private function getEBMLelement(&$element, $parent_end, $get_data = \false) - { - } - /** - * @param string $type - * @param int $line - * @param array $element - */ - private function unhandledElement($type, $line, $element) - { - } - /** - * @param array $SimpleTagArray - * - * @return bool - */ - private function ExtractCommentsSimpleTag($SimpleTagArray) - { - } - /** - * @param int $parent_end - * - * @return array - */ - private function HandleEMBLSimpleTag($parent_end) - { - } - /** - * @param array $element - * @param int $block_type - * @param array $info - * - * @return array - */ - private function HandleEMBLClusterBlock($element, $block_type, &$info) - { - } - /** - * @param string $EBMLstring - * - * @return int|float|false - */ - private static function EBML2Int($EBMLstring) - { - } - /** - * @param int $EBMLdatestamp - * - * @return float - */ - private static function EBMLdate2unix($EBMLdatestamp) - { - } /** * @param int $target_type * @@ -14334,14 +13858,6 @@ public static function BlockLacingType($lacingtype) public static function CodecIDtoCommonName($codecid) { } - /** - * @param int $value - * - * @return string - */ - private static function EBMLidName($value) - { - } /** * @param int $value * @@ -14350,14 +13866,6 @@ private static function EBMLidName($value) public static function displayUnit($value) { } - /** - * @param array $streams - * - * @return array - */ - private static function getDefaultStreamInfo($streams) - { - } } // needed for ISO 639-2 language code lookup class getid3_quicktime extends \getid3_handler @@ -14695,26 +14203,9 @@ public static function wFormatTagLookup($wFormatTag) public static function fourccLookup($fourcc) { } - /** - * @param string $byteword - * @param bool $signed - * - * @return int|float|false - */ - private function EitherEndian2Int($byteword, $signed = \false) - { - } } class getid3_ac3 extends \getid3_handler { - /** - * @var array - */ - private $AC3header = array(); - /** - * @var int - */ - private $BSIoffset = 0; const syncword = 0xb77; /** * @return bool @@ -14722,14 +14213,6 @@ class getid3_ac3 extends \getid3_handler public function Analyze() { } - /** - * @param int $length - * - * @return int - */ - private function readHeaderBSI($length) - { - } /** * @param int $fscod * @@ -14847,10 +14330,6 @@ class getid3_dts extends \getid3_handler * Default DTS syncword used in native .cpt or .dts formats. */ const syncword = "\xfe\x80\x01"; - /** - * @var int - */ - private $readBinDataOffset = 0; /** * Possible syncwords indicating bitstream encoding. */ @@ -14870,15 +14349,6 @@ class getid3_dts extends \getid3_handler public function Analyze() { } - /** - * @param string $bin - * @param int $length - * - * @return int - */ - private function readBinData($bin, $length) - { - } /** * @param int $index * @@ -14955,46 +14425,6 @@ public function parseMETAdata() public static function parseSTREAMINFOdata($BlockData) { } - /** - * @param string $BlockData - * - * @return bool - */ - private function parseSTREAMINFO($BlockData) - { - } - /** - * @param string $BlockData - * - * @return bool - */ - private function parseAPPLICATION($BlockData) - { - } - /** - * @param string $BlockData - * - * @return bool - */ - private function parseSEEKTABLE($BlockData) - { - } - /** - * @param string $BlockData - * - * @return bool - */ - private function parseVORBIS_COMMENT($BlockData) - { - } - /** - * @param string $BlockData - * - * @return bool - */ - private function parseCUESHEET($BlockData) - { - } /** * Parse METADATA_BLOCK_PICTURE flac structure and extract attachment * External usage: audio.ogg @@ -16852,23 +16282,6 @@ public function __construct($exceptions = null) public function __destruct() { } - /** - * Call mail() in a safe_mode-aware fashion. - * Also, unless sendmail_path points to sendmail (or something that - * claims to be sendmail), don't pass params (not a perfect fix, - * but it will do). - * - * @param string $to To - * @param string $subject Subject - * @param string $body Message Body - * @param string $header Additional Header(s) - * @param string|null $params Params - * - * @return bool - */ - private function mailPassthru($to, $subject, $body, $header, $params) - { - } /** * Output debugging info via a user-defined method. * Only generates output if debug output is enabled. @@ -17773,15 +17186,6 @@ public static function isValidHost($host) protected function lang($key) { } - /** - * Build an error message starting with a generic one and adding details if possible. - * - * @param string $base_key - * @return string - */ - private function getSmtpErrorMessage($base_key) - { - } /** * Check if an error occurred. * @@ -19126,7 +18530,6 @@ public function normalizeCookie($cookie, $key = \null) * @param string $key Item key * @return boolean Does the item exist? */ - #[ReturnTypeWillChange] public function offsetExists($key) { } @@ -19136,7 +18539,6 @@ public function offsetExists($key) * @param string $key Item key * @return string|null Item value (null if offsetExists is false) */ - #[ReturnTypeWillChange] public function offsetGet($key) { } @@ -19148,7 +18550,6 @@ public function offsetGet($key) * @param string $key Item name * @param string $value Item value */ - #[ReturnTypeWillChange] public function offsetSet($key, $value) { } @@ -19157,7 +18558,6 @@ public function offsetSet($key, $value) * * @param string $key */ - #[ReturnTypeWillChange] public function offsetUnset($key) { } @@ -19166,7 +18566,6 @@ public function offsetUnset($key) * * @return ArrayIterator */ - #[ReturnTypeWillChange] public function getIterator() { } @@ -21122,7 +20521,6 @@ public function __construct(array $data = array()) * @param string $key Item key * @return boolean Does the item exist? */ - #[ReturnTypeWillChange] public function offsetExists($key) { } @@ -21132,7 +20530,6 @@ public function offsetExists($key) * @param string $key Item key * @return string|null Item value (null if offsetExists is false) */ - #[ReturnTypeWillChange] public function offsetGet($key) { } @@ -21144,7 +20541,6 @@ public function offsetGet($key) * @param string $key Item name * @param string $value Item value */ - #[ReturnTypeWillChange] public function offsetSet($key, $value) { } @@ -21153,7 +20549,6 @@ public function offsetSet($key, $value) * * @param string $key */ - #[ReturnTypeWillChange] public function offsetUnset($key) { } @@ -21162,7 +20557,6 @@ public function offsetUnset($key) * * @return ArrayIterator */ - #[ReturnTypeWillChange] public function getIterator() { } @@ -21894,14 +21288,12 @@ public function __construct($data, $callback) * * @return string */ - #[ReturnTypeWillChange] public function current() { } /** * @inheritdoc */ - #[ReturnTypeWillChange] public function unserialize($serialized) { } @@ -21910,7 +21302,6 @@ public function unserialize($serialized) * * @phpcs:disable PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.MethodDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.NewMagicMethods.__unserializeFound */ - #[ReturnTypeWillChange] public function __unserialize($serialized) { } @@ -22096,12 +21487,6 @@ class SimplePie_Cache * @var array */ protected static $handlers = array('mysql' => 'SimplePie_Cache_MySQL', 'memcache' => 'SimplePie_Cache_Memcache', 'memcached' => 'SimplePie_Cache_Memcached', 'redis' => 'SimplePie_Cache_Redis'); - /** - * Don't call the constructor. Please. - */ - private function __construct() - { - } /** * Create a new SimplePie_Cache object * @@ -22674,13 +22059,6 @@ public function touch() public function unlink() { } - /** - * Set the last modified time and data to Memcached - * @return bool Success status - */ - private function setData($data) - { - } } /** * SimplePie @@ -24643,18 +24021,6 @@ public static function sort_items($a, $b) public static function merge_items($urls, $start = 0, $end = 0, $limit = 0) { } - /** - * Store PubSubHubbub links as headers - * - * There is no way to find PuSH links in the body of a microformats feed, - * so they are added to the headers when found, to be used later by get_links. - * @param SimplePie_File $file - * @param string $hub - * @param string $self - */ - private function store_links(&$file, $hub, $self) - { - } } /** * SimplePie @@ -27175,21 +26541,6 @@ public static function uncompress($ip) public static function compress($ip) { } - /** - * Splits an IPv6 address into the IPv6 and IPv4 representation parts - * - * RFC 4291 allows you to represent the last two parts of an IPv6 address - * using the standard IPv4 representation - * - * Example: 0:0:0:0:0:0:13.1.68.3 - * 0:0:0:0:0:FFFF:129.144.52.38 - * - * @param string $ip An IPv6 address - * @return array [0] contains the IPv6 represented part, and [1] the IPv4 represented part - */ - private static function split_v6_v4($ip) - { - } /** * Checks an IPv6 address * @@ -27790,15 +27141,6 @@ public function tag_close($parser, $tag) public function split_ns($string) { } - private function parse_hcard($data, $category = \false) - { - } - private function parse_microformats(&$data, $url) - { - } - private function declare_html_entities() - { - } } /** * SimplePie @@ -29939,14 +29281,6 @@ class Requests * @var string */ protected static $certificate_path; - /** - * This is a static class, do not instantiate it - * - * @codeCoverageIgnore - */ - private function __construct() - { - } /** * Autoloader for Requests * @@ -30943,8 +30277,6 @@ public function end_el(&$output, $data_object, $depth = 0, $args = array()) #[\AllowDynamicProperties] class WP_Admin_Bar { - private $nodes = array(); - private $bound = \false; public $user; /** * @since 3.3.0 @@ -31982,27 +31314,6 @@ function add_block_from_stack($end_offset = \null) #[\AllowDynamicProperties] final class WP_Block_Pattern_Categories_Registry { - /** - * Registered block pattern categories array. - * - * @since 5.5.0 - * @var array[] - */ - private $registered_categories = array(); - /** - * Pattern categories registered outside the `init` action. - * - * @since 6.0.0 - * @var array[] - */ - private $registered_categories_outside_init = array(); - /** - * Container for the main instance of the class. - * - * @since 5.5.0 - * @var WP_Block_Pattern_Categories_Registry|null - */ - private static $instance = \null; /** * Registers a pattern category. * @@ -32094,27 +31405,6 @@ public static function get_instance() #[\AllowDynamicProperties] final class WP_Block_Patterns_Registry { - /** - * Registered block patterns array. - * - * @since 5.5.0 - * @var array[] - */ - private $registered_patterns = array(); - /** - * Patterns registered outside the `init` action. - * - * @since 6.0.0 - * @var array[] - */ - private $registered_patterns_outside_init = array(); - /** - * Container for the main instance of the class. - * - * @since 5.5.0 - * @var WP_Block_Patterns_Registry|null - */ - private static $instance = \null; /** * Registers a block pattern. * @@ -32235,22 +31525,6 @@ public static function get_instance() #[\AllowDynamicProperties] final class WP_Block_Styles_Registry { - /** - * Registered block styles, as `$block_name => $block_style_name => $block_style_properties` multidimensional arrays. - * - * @since 5.3.0 - * - * @var array[] - */ - private $registered_block_styles = array(); - /** - * Container for the main instance of the class. - * - * @since 5.3.0 - * - * @var WP_Block_Styles_Registry|null - */ - private static $instance = \null; /** * Registers a block style for the given block type. * @@ -32375,13 +31649,6 @@ public static function get_instance() #[\AllowDynamicProperties] class WP_Block_Supports { - /** - * Config. - * - * @since 5.6.0 - * @var array - */ - private $block_supports = array(); /** * Tracks the current block to be rendered. * @@ -32389,13 +31656,6 @@ class WP_Block_Supports * @var array */ public static $block_to_render = \null; - /** - * Container for the main instance of the class. - * - * @since 5.6.0 - * @var WP_Block_Supports|null - */ - private static $instance = \null; /** * Utility method to retrieve the main instance of the class. * @@ -32440,14 +31700,6 @@ public function register($block_support_name, $block_support_config) public function apply_block_supports() { } - /** - * Registers the block attributes required by the different block supports. - * - * @since 5.6.0 - */ - private function register_attributes() - { - } } /** * Blocks API: WP_Block_Template class @@ -32596,20 +31848,6 @@ class WP_Block_Template #[\AllowDynamicProperties] final class WP_Block_Type_Registry { - /** - * Registered block types, as `$name => $instance` pairs. - * - * @since 5.0.0 - * @var WP_Block_Type[] - */ - private $registered_block_types = array(); - /** - * Container for the main instance of the class. - * - * @since 5.0.0 - * @var WP_Block_Type_Registry|null - */ - private static $instance = \null; /** * Registers a block type. * @@ -32891,13 +32129,6 @@ class WP_Block_Type * @var string[] */ public $style_handles = array(); - /** - * Deprecated block type properties for script and style handles. - * - * @since 6.1.0 - * @var string[] - */ - private $deprecated_properties = array('editor_script', 'script', 'view_script', 'editor_style', 'style'); /** * Attributes supported by every block. * @@ -33651,17 +32882,6 @@ public function get_comments() protected function get_comment_ids() { } - /** - * Populates found_comments and max_num_pages properties for the current - * query if the limit clause was used. - * - * @since 4.6.0 - * - * @global wpdb $wpdb WordPress database abstraction object. - */ - private function set_found_comments() - { - } /** * Fetch descendants for located comments. * @@ -33848,27 +33068,6 @@ final class WP_Comment * @var string */ public $user_id = 0; - /** - * Comment children. - * - * @since 4.4.0 - * @var array - */ - protected $children; - /** - * Whether children have been populated for this comment object. - * - * @since 4.4.0 - * @var bool - */ - protected $populated_children = \false; - /** - * Post fields. - * - * @since 4.4.0 - * @var array - */ - protected $post_fields = array('post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_title', 'post_excerpt', 'post_status', 'comment_status', 'ping_status', 'post_name', 'to_ping', 'pinged', 'post_modified', 'post_modified_gmt', 'post_content_filtered', 'post_parent', 'guid', 'menu_order', 'post_type', 'post_mime_type', 'comment_count'); /** * Retrieves a WP_Comment instance. * @@ -34425,27 +33624,6 @@ protected function content_template() #[\AllowDynamicProperties] final class WP_Customize_Manager { - /** - * An instance of the theme being previewed. - * - * @since 3.4.0 - * @var WP_Theme - */ - protected $theme; - /** - * The directory name of the previously active theme (within the theme_root). - * - * @since 3.4.0 - * @var string - */ - protected $original_stylesheet; - /** - * Whether this is a Customizer pageload. - * - * @since 3.4.0 - * @var bool - */ - protected $previewing = \false; /** * Methods and properties dealing with managing widgets in the Customizer. * @@ -34467,152 +33645,6 @@ final class WP_Customize_Manager * @var WP_Customize_Selective_Refresh */ public $selective_refresh; - /** - * Registered instances of WP_Customize_Setting. - * - * @since 3.4.0 - * @var array - */ - protected $settings = array(); - /** - * Sorted top-level instances of WP_Customize_Panel and WP_Customize_Section. - * - * @since 4.0.0 - * @var array - */ - protected $containers = array(); - /** - * Registered instances of WP_Customize_Panel. - * - * @since 4.0.0 - * @var array - */ - protected $panels = array(); - /** - * List of core components. - * - * @since 4.5.0 - * @var array - */ - protected $components = array('widgets', 'nav_menus'); - /** - * Registered instances of WP_Customize_Section. - * - * @since 3.4.0 - * @var array - */ - protected $sections = array(); - /** - * Registered instances of WP_Customize_Control. - * - * @since 3.4.0 - * @var array - */ - protected $controls = array(); - /** - * Panel types that may be rendered from JS templates. - * - * @since 4.3.0 - * @var array - */ - protected $registered_panel_types = array(); - /** - * Section types that may be rendered from JS templates. - * - * @since 4.3.0 - * @var array - */ - protected $registered_section_types = array(); - /** - * Control types that may be rendered from JS templates. - * - * @since 4.1.0 - * @var array - */ - protected $registered_control_types = array(); - /** - * Initial URL being previewed. - * - * @since 4.4.0 - * @var string - */ - protected $preview_url; - /** - * URL to link the user to when closing the Customizer. - * - * @since 4.4.0 - * @var string - */ - protected $return_url; - /** - * Mapping of 'panel', 'section', 'control' to the ID which should be autofocused. - * - * @since 4.4.0 - * @var string[] - */ - protected $autofocus = array(); - /** - * Messenger channel. - * - * @since 4.7.0 - * @var string - */ - protected $messenger_channel; - /** - * Whether the autosave revision of the changeset should be loaded. - * - * @since 4.9.0 - * @var bool - */ - protected $autosaved = \false; - /** - * Whether the changeset branching is allowed. - * - * @since 4.9.0 - * @var bool - */ - protected $branching = \true; - /** - * Whether settings should be previewed. - * - * @since 4.9.0 - * @var bool - */ - protected $settings_previewed = \true; - /** - * Whether a starter content changeset was saved. - * - * @since 4.9.0 - * @var bool - */ - protected $saved_starter_content_changeset = \false; - /** - * Unsanitized values for Customize Settings parsed from $_POST['customized']. - * - * @var array - */ - private $_post_values; - /** - * Changeset UUID. - * - * @since 4.7.0 - * @var string - */ - private $_changeset_uuid; - /** - * Changeset post ID. - * - * @since 4.7.0 - * @var int|false - */ - private $_changeset_post_id; - /** - * Changeset data loaded from a customize_changeset post. - * - * @since 4.7.0 - * @var array|null - */ - private $_changeset_data; /** * Constructor. * @@ -34658,18 +33690,6 @@ public function __construct($args = array()) public function doing_ajax($action = \null) { } - /** - * Custom wp_die wrapper. Returns either the standard message for UI - * or the Ajax message. - * - * @since 3.4.0 - * - * @param string|WP_Error $ajax_message Ajax return. - * @param string $message Optional. UI message. - */ - protected function wp_die($ajax_message, $message = \null) - { - } /** * Returns the Ajax wp_die() handler if it's a customized request. * @@ -34888,39 +33908,6 @@ public function wp_redirect_status($status) public function find_changeset_post_id($uuid) { } - /** - * Gets changeset posts. - * - * @since 4.9.0 - * - * @param array $args { - * Args to pass into `get_posts()` to query changesets. - * - * @type int $posts_per_page Number of posts to return. Defaults to -1 (all posts). - * @type int $author Post author. Defaults to current user. - * @type string $post_status Status of changeset. Defaults to 'auto-draft'. - * @type bool $exclude_restore_dismissed Whether to exclude changeset auto-drafts that have been dismissed. Defaults to true. - * } - * @return WP_Post[] Auto-draft changesets. - * @phpstan-param array{ - * posts_per_page?: int, - * author?: int, - * post_status?: string, - * exclude_restore_dismissed?: bool, - * } $args - */ - protected function get_changeset_posts($args = array()) - { - } - /** - * Dismisses all of the current user's auto-drafts (other than the present one). - * - * @since 4.9.0 - * @return int The number of auto-drafts that were dismissed. - */ - protected function dismiss_user_auto_draft_changesets() - { - } /** * Gets the changeset post ID for the loaded changeset. * @@ -34931,17 +33918,6 @@ protected function dismiss_user_auto_draft_changesets() public function changeset_post_id() { } - /** - * Gets the data stored in a changeset post. - * - * @since 4.7.0 - * - * @param int $post_id Changeset post ID. - * @return array|WP_Error Changeset data or WP_Error on error. - */ - protected function get_changeset_post_data($post_id) - { - } /** * Gets changeset data. * @@ -34953,13 +33929,6 @@ protected function get_changeset_post_data($post_id) public function changeset_data() { } - /** - * Starter content setting IDs. - * - * @since 4.7.0 - * @var array - */ - protected $pending_starter_content_settings_ids = array(); /** * Imports theme starter content into the customized state. * @@ -34970,19 +33939,6 @@ public function changeset_data() public function import_theme_starter_content($starter_content = array()) { } - /** - * Prepares starter content attachments. - * - * Ensure that the attachments are valid and that they have slugs and file name/path. - * - * @since 4.7.0 - * - * @param array $attachments Attachments. - * @return array Prepared attachments. - */ - protected function prepare_starter_content_attachments($attachments) - { - } /** * Saves starter content changeset. * @@ -35436,17 +34392,6 @@ public function refresh_changeset_lock($changeset_post_id) public function add_customize_screen_to_heartbeat_settings($settings) { } - /** - * Gets lock user data. - * - * @since 4.9.0 - * - * @param int $user_id User ID. - * @return array|null User data formatted for client. - */ - protected function get_lock_user_data($user_id) - { - } /** * Checks locked changeset with heartbeat API. * @@ -35468,13 +34413,6 @@ public function check_changeset_lock_with_heartbeat($response, $data, $screen_id public function handle_override_changeset_lock_request() { } - /** - * Determines whether a changeset revision should be made. - * - * @since 4.7.0 - * @var bool - */ - protected $store_changeset_revision; /** * Filters whether a changeset has changed to create a new revision. * @@ -35514,17 +34452,6 @@ public function _filter_revision_post_has_changed($post_has_changed, $latest_rev public function _publish_changeset_values($changeset_post_id) { } - /** - * Updates stashed theme mod settings. - * - * @since 4.7.0 - * - * @param array $inactive_theme_mod_settings Mapping of stylesheet to arrays of theme mod settings. - * @return array|false Returns array of updated stashed theme mods or false if the update failed or there were no changes. - */ - protected function update_stashed_theme_mod_settings($inactive_theme_mod_settings) - { - } /** * Refreshes nonces for the current preview. * @@ -35833,19 +34760,6 @@ public function register_control_type($control) public function render_control_templates() { } - /** - * Helper function to compare two objects by priority, ensuring sort stability via instance_number. - * - * @since 3.4.0 - * @deprecated 4.7.0 Use wp_list_sort() - * - * @param WP_Customize_Panel|WP_Customize_Section|WP_Customize_Control $a Object A. - * @param WP_Customize_Panel|WP_Customize_Section|WP_Customize_Control $b Object B. - * @return int - */ - protected function _cmp_priority($a, $b) - { - } /** * Prepares panels, sections, and controls. * @@ -36200,13 +35114,6 @@ final class WP_Customize_Nav_Menus * @var WP_Customize_Manager */ public $manager; - /** - * Original nav menu locations before the theme was switched. - * - * @since 4.9.0 - * @var array - */ - protected $original_nav_menu_locations; /** * Constructor. * @@ -36385,26 +35292,6 @@ public function print_templates() public function available_items_template() { } - /** - * Prints the markup for new menu items. - * - * To be used in the template #available-menu-items. - * - * @since 4.7.0 - * - * @param array $available_item_type Menu item data to output, including title, type, and label. - */ - protected function print_post_type_container($available_item_type) - { - } - /** - * Prints the markup for available menu item custom links. - * - * @since 4.7.0 - */ - protected function print_custom_links_available_menu_item() - { - } // // Start functionality specific to partial-refresh of menu changes in Customizer preview. // @@ -37621,42 +36508,6 @@ final class WP_Customize_Widgets * @var WP_Customize_Manager */ public $manager; - /** - * All id_bases for widgets defined in core. - * - * @since 3.9.0 - * @var array - */ - protected $core_widget_id_bases = array('archives', 'calendar', 'categories', 'custom_html', 'links', 'media_audio', 'media_image', 'media_video', 'meta', 'nav_menu', 'pages', 'recent-comments', 'recent-posts', 'rss', 'search', 'tag_cloud', 'text'); - /** - * @since 3.9.0 - * @var array - */ - protected $rendered_sidebars = array(); - /** - * @since 3.9.0 - * @var array - */ - protected $rendered_widgets = array(); - /** - * @since 3.9.0 - * @var array - */ - protected $old_sidebars_widgets = array(); - /** - * Mapping of widget ID base to whether it supports selective refresh. - * - * @since 4.5.0 - * @var array - */ - protected $selective_refreshable_widgets; - /** - * Mapping of setting type to setting ID pattern. - * - * @since 4.2.0 - * @var array - */ - protected $setting_id_patterns = array('widget_instance' => '/^widget_(?P.+?)(?:\\[(?P\\d+)\\])?$/', 'sidebar_widgets' => '/^sidebars_widgets\\[(?P.+?)\\]$/'); /** * Initial loader. * @@ -37694,17 +36545,6 @@ public function get_selective_refreshable_widgets() public function is_widget_selective_refreshable($id_base) { } - /** - * Retrieves the widget setting type given a setting ID. - * - * @since 4.2.0 - * - * @param string $setting_id Setting ID. - * @return string|void Setting type. - */ - protected function get_setting_type($setting_id) - { - } /** * Inspects the incoming customized data for any widget settings, and dynamically adds * them up-front so widgets will be initialized properly. @@ -37726,18 +36566,6 @@ public function register_settings() public function filter_customize_dynamic_setting_args($args, $setting_id) { } - /** - * Retrieves an unslashed post value or return a default. - * - * @since 3.9.0 - * - * @param string $name Post value. - * @param mixed $default_value Default post value. - * @return mixed Unslashed post value or default value. - */ - protected function get_post_value($name, $default_value = \null) - { - } /** * Override sidebars_widgets for theme switch. * @@ -37978,18 +36806,6 @@ public function sanitize_sidebar_widgets($widget_ids) public function get_available_widgets() { } - /** - * Naturally orders available widgets by name. - * - * @since 3.9.0 - * - * @param array $widget_a The first widget to compare. - * @param array $widget_b The second widget to compare. - * @return int Reorder position for the current widget comparison. - */ - protected function _sort_name_callback($widget_a, $widget_b) - { - } /** * Retrieves the widget control markup. * @@ -38159,20 +36975,6 @@ public function tally_sidebars_via_is_active_sidebar_calls($is_active, $sidebar_ public function tally_sidebars_via_dynamic_sidebar_calls($has_widgets, $sidebar_id) { } - /** - * Retrieves MAC for a serialized widget instance string. - * - * Allows values posted back from JS to be rejected if any tampering of the - * data has occurred. - * - * @since 3.9.0 - * - * @param string $serialized_instance Widget instance. - * @return string MAC for serialized widget instance. - */ - protected function get_instance_hash_key($serialized_instance) - { - } /** * Sanitizes a widget instance. * @@ -38299,16 +37101,6 @@ public function selective_refresh_init() public function filter_dynamic_sidebar_params($params) { } - /** - * List of the tag names seen for before_widget strings. - * - * This is used in the {@see 'filter_wp_kses_allowed_html'} filter to ensure that the - * data-* attributes can be allowed. - * - * @since 4.5.0 - * @var array - */ - protected $before_widget_tags_seen = array(); /** * Ensures the HTML data-* attributes for selective refresh are allowed by kses. * @@ -38322,29 +37114,6 @@ public function filter_dynamic_sidebar_params($params) public function filter_wp_kses_allowed_data_attributes($allowed_html) { } - /** - * Keep track of the number of times that dynamic_sidebar() was called for a given sidebar index. - * - * This helps facilitate the uncommon scenario where a single sidebar is rendered multiple times on a template. - * - * @since 4.5.0 - * @var array - */ - protected $sidebar_instance_count = array(); - /** - * The current request's sidebar_instance_number context. - * - * @since 4.5.0 - * @var int|null - */ - protected $context_sidebar_instance_number; - /** - * Current sidebar ID being rendered. - * - * @since 4.5.0 - * @var array - */ - protected $current_dynamic_sidebar_id_stack = array(); /** * Begins keeping track of the current sidebar being rendered. * @@ -38369,20 +37138,6 @@ public function start_dynamic_sidebar($index) public function end_dynamic_sidebar($index) { } - /** - * Current sidebar being rendered. - * - * @since 4.5.0 - * @var string|null - */ - protected $rendering_widget_id; - /** - * Current widget being rendered. - * - * @since 4.5.0 - * @var string|null - */ - protected $rendering_sidebar_id; /** * Filters sidebars_widgets to ensure the currently-rendered widget is the only widget in the current sidebar. * @@ -38417,74 +37172,6 @@ public function filter_sidebars_widgets_for_rendering_widget($sidebars_widgets) public function render_widget_partial($partial, $context) { } - // - // Option Update Capturing. - // - /** - * List of captured widget option updates. - * - * @since 3.9.0 - * @var array $_captured_options Values updated while option capture is happening. - */ - protected $_captured_options = array(); - /** - * Whether option capture is currently happening. - * - * @since 3.9.0 - * @var bool $_is_current Whether option capture is currently happening or not. - */ - protected $_is_capturing_option_updates = \false; - /** - * Determines whether the captured option update should be ignored. - * - * @since 3.9.0 - * - * @param string $option_name Option name. - * @return bool Whether the option capture is ignored. - */ - protected function is_option_capture_ignored($option_name) - { - } - /** - * Retrieves captured widget option updates. - * - * @since 3.9.0 - * - * @return array Array of captured options. - */ - protected function get_captured_options() - { - } - /** - * Retrieves the option that was captured from being saved. - * - * @since 4.2.0 - * - * @param string $option_name Option name. - * @param mixed $default_value Optional. Default value to return if the option does not exist. Default false. - * @return mixed Value set for the option. - */ - protected function get_captured_option($option_name, $default_value = \false) - { - } - /** - * Retrieves the number of captured widget option updates. - * - * @since 3.9.0 - * - * @return int Number of updated options. - */ - protected function count_captured_options() - { - } - /** - * Begins keeping track of changes to widget options, caching new values. - * - * @since 3.9.0 - */ - protected function start_capturing_option_updates() - { - } /** * Pre-filters captured option values before updating. * @@ -38509,14 +37196,6 @@ public function capture_filter_pre_update_option($new_value, $option_name, $old_ public function capture_filter_pre_get_option($value) { } - /** - * Undoes any changes to the options since options capture began. - * - * @since 3.9.0 - */ - protected function stop_capturing_option_updates() - { - } /** * {@internal Missing Summary} * @@ -39021,22 +37700,6 @@ class WP_Dependencies * @var int */ public $group = 0; - /** - * Cached lookup array of flattened queued items and dependencies. - * - * @since 5.4.0 - * - * @var array - */ - private $all_queued_deps; - /** - * List of assets enqueued before details were registered. - * - * @since 5.9.0 - * - * @var array - */ - private $queued_before_register = array(); /** * Processes the items and dependencies. * @@ -39350,26 +38013,6 @@ public function set_translations($domain, $path = '') final class _WP_Editors { public static $mce_locale; - private static $mce_settings = array(); - private static $qt_settings = array(); - private static $plugins = array(); - private static $qt_buttons = array(); - private static $ext_plugins; - private static $baseurl; - private static $first_init; - private static $this_tinymce = \false; - private static $this_quicktags = \false; - private static $has_tinymce = \false; - private static $has_quicktags = \false; - private static $has_medialib = \false; - private static $editor_buttons_css = \true; - private static $drag_drop_upload = \false; - private static $translation; - private static $tinymce_scripts_printed = \false; - private static $link_dialog_printed = \false; - private function __construct() - { - } /** * Parse default arguments for the editor instance. * @@ -39462,15 +38105,6 @@ public static function editor($content, $editor_id, $settings = array()) public static function editor_settings($editor_id, $set) { } - /** - * @since 3.3.0 - * - * @param array $init - * @return string - */ - private static function _parse_init($init) - { - } /** * @since 3.3.0 * @@ -39517,27 +38151,6 @@ public static function get_mce_locale() public static function get_baseurl() { } - /** - * Returns the default TinyMCE settings. - * Doesn't include plugins, buttons, editor selector. - * - * @since 4.8.0 - * - * @global string $tinymce_version - * - * @return array - */ - private static function default_settings() - { - } - /** - * @since 4.7.0 - * - * @return array - */ - private static function get_translation() - { - } /** * Translates the default TinyMCE strings and returns them as JSON encoded object ready to be loaded with tinymce.addI18n(), * or as JS snippet that should run after tinymce.js is loaded. @@ -40262,34 +38875,6 @@ final class WP_Hook implements \Iterator, \ArrayAccess * @var array */ public $callbacks = array(); - /** - * The priority keys of actively running iterations of a hook. - * - * @since 4.7.0 - * @var array - */ - private $iterations = array(); - /** - * The current priority of actively running iterations of a hook. - * - * @since 4.7.0 - * @var array - */ - private $current_priority = array(); - /** - * Number of levels this hook can be recursively called. - * - * @since 4.7.0 - * @var int - */ - private $nesting_level = 0; - /** - * Flag for if we're currently doing an action, rather than a filter. - * - * @since 4.7.0 - * @var bool - */ - private $doing_action = \false; /** * Adds a callback function to a filter hook. * @@ -40306,19 +38891,6 @@ final class WP_Hook implements \Iterator, \ArrayAccess public function add_filter($hook_name, $callback, $priority, $accepted_args) { } - /** - * Handles resetting callback priority keys mid-iteration. - * - * @since 4.7.0 - * - * @param false|int $new_priority Optional. The priority of the new filter being added. Default false, - * for no priority being added. - * @param bool $priority_existed Optional. Flag for whether the priority already existed before the new - * filter was added. Default false. - */ - private function resort_active_iterations($new_priority = \false, $priority_existed = \false) - { - } /** * Removes a callback function from a filter hook. * @@ -40754,41 +39326,6 @@ public function get_attributes() #[\AllowDynamicProperties] class WP_Http_Curl { - /** - * Temporary header storage for during requests. - * - * @since 3.2.0 - * @var string - */ - private $headers = ''; - /** - * Temporary body storage for during requests. - * - * @since 3.6.0 - * @var string - */ - private $body = ''; - /** - * The maximum amount of data to receive from the remote server. - * - * @since 3.6.0 - * @var int|false - */ - private $max_body_length = \false; - /** - * The file resource used for streaming to file. - * - * @since 3.6.0 - * @var resource|false - */ - private $stream_handle = \false; - /** - * The total bytes written in the current request. - * - * @since 4.1.0 - * @var int - */ - private $bytes_written_total = 0; /** * Send a HTTP request to a URI using cURL extension. * @@ -40801,37 +39338,6 @@ class WP_Http_Curl public function request($url, $args = array()) { } - /** - * Grabs the headers of the cURL request. - * - * Each header is sent individually to this callback, so we append to the `$header` property - * for temporary storage - * - * @since 3.2.0 - * - * @param resource $handle cURL handle. - * @param string $headers cURL request headers. - * @return int Length of the request headers. - */ - private function stream_headers($handle, $headers) - { - } - /** - * Grabs the body of the cURL request. - * - * The contents of the document are passed in chunks, so we append to the `$body` - * property for temporary storage. Returning a length shorter than the length of - * `$data` passed in will cause cURL to abort the request with `CURLE_WRITE_ERROR`. - * - * @since 3.6.0 - * - * @param resource $handle cURL handle. - * @param string $data cURL request body. - * @return int Total bytes of data written. - */ - private function stream_body($handle, $data) - { - } /** * Determines whether this class can be used for retrieving a URL. * @@ -41759,26 +40265,6 @@ public static function validate_redirects($location) public function _get_first_available_transport($args, $url = \null) { } - /** - * Dispatches a HTTP request to a supporting transport. - * - * Tests each transport in order to find a transport which matches the request arguments. - * Also caches the transport instance to be used later. - * - * The order for requests is cURL, and then PHP Streams. - * - * @since 3.2.0 - * @deprecated 5.1.0 Use WP_Http::request() - * @see WP_Http::request() - * - * @param string $url URL to request. - * @param array $args Request arguments. - * @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'. - * A WP_Error instance upon error. - */ - private function _dispatch_request($url, $args) - { - } /** * Uses the POST HTTP method. * @@ -42900,18 +41386,6 @@ public function save($destfilename = \null, $mime_type = \null) protected function _save($image, $filename = \null, $mime_type = \null) { } - /** - * Writes an image to a file or stream. - * - * @since 5.6.0 - * - * @param Imagick $image - * @param string $filename The destination filename or stream URL. - * @return true|WP_Error - */ - private function write_image($image, $filename) - { - } /** * Streams current image to browser. * @@ -42974,27 +41448,6 @@ protected function pdf_load_source() #[\AllowDynamicProperties] class WP_List_Util { - /** - * The input array. - * - * @since 4.7.0 - * @var array - */ - private $input = array(); - /** - * The output array. - * - * @since 4.7.0 - * @var array - */ - private $output = array(); - /** - * Temporary arguments for sorting. - * - * @since 4.7.0 - * @var string[] - */ - private $orderby = array(); /** * Constructor. * @@ -43083,20 +41536,6 @@ public function pluck($field, $index_key = \null) public function sort($orderby = array(), $order = 'ASC', $preserve_keys = \false) { } - /** - * Callback to sort an array by specific fields. - * - * @since 4.7.0 - * - * @see WP_List_Util::sort() - * - * @param object|array $a One object to compare. - * @param object|array $b The other object to compare. - * @return int 0 if both objects equal. -1 if second object should come first, 1 otherwise. - */ - private function sort_callback($a, $b) - { - } } /** * Locale API: WP_Locale_Switcher class @@ -43113,27 +41552,6 @@ private function sort_callback($a, $b) #[\AllowDynamicProperties] class WP_Locale_Switcher { - /** - * Locale stack. - * - * @since 4.7.0 - * @var string[] - */ - private $locales = array(); - /** - * Original locale. - * - * @since 4.7.0 - * @var string - */ - private $original_locale; - /** - * Holds all available languages. - * - * @since 4.7.0 - * @var string[] An array of language codes (file names without the .mo extension). - */ - private $available_languages = array(); /** * Constructor. * @@ -43206,35 +41624,6 @@ public function is_switched() public function filter_locale($locale) { } - /** - * Load translations for a given locale. - * - * When switching to a locale, translations for this locale must be loaded from scratch. - * - * @since 4.7.0 - * - * @global Mo[] $l10n An array of all currently loaded text domains. - * - * @param string $locale The locale to load translations for. - */ - private function load_translations($locale) - { - } - /** - * Changes the site's locale to the given one. - * - * Loads the translations, changes the global `$wp_locale` object and updates - * all post type labels. - * - * @since 4.7.0 - * - * @global WP_Locale $wp_locale WordPress date and time locale object. - * - * @param string $locale The locale to change to. - */ - private function change_locale($locale) - { - } } /** * Locale API: WP_Locale class @@ -43509,24 +41898,12 @@ public function get_list_item_separator() #[\AllowDynamicProperties] class WP_MatchesMapRegex { - /** - * store for matches - * - * @var array - */ - private $_matches; /** * store for mapping result * * @var string */ public $output; - /** - * subject to perform mapping on (query string containing $matches[] references - * - * @var string - */ - private $_subject; /** * regexp pattern to match $matches[] references * @@ -43555,14 +41932,6 @@ public function __construct($subject, $matches) public static function apply($subject, $matches) { } - /** - * do the actual mapping - * - * @return string - */ - private function _map() - { - } /** * preg_replace_callback hook * @@ -44224,17 +42593,6 @@ public function get_networks() protected function get_network_ids() { } - /** - * Populates found_networks and max_num_pages properties for the current query - * if the limit clause was used. - * - * @since 4.6.0 - * - * @global wpdb $wpdb WordPress database abstraction object. - */ - private function set_found_networks() - { - } /** * Used internally to generate an SQL string for searching across multiple columns. * @@ -44298,16 +42656,6 @@ protected function parse_order($order) #[\AllowDynamicProperties] class WP_Network { - /** - * Network ID. - * - * @since 4.4.0 - * @since 4.6.0 Converted from public to private to explicitly enable more intuitive - * access via magic methods. As part of the access change, the type was - * also changed from `string` to `int`. - * @var int - */ - private $id; /** * Domain of the network. * @@ -44322,18 +42670,6 @@ class WP_Network * @var string */ public $path = ''; - /** - * The ID of the network's main site. - * - * Named "blog" vs. "site" for legacy reasons. A main site is mapped to - * the network when the network is created. - * - * A numeric string, for compatibility reasons. - * - * @since 4.4.0 - * @var string - */ - private $blog_id = '0'; /** * Domain used to set cookies for this network. * @@ -44415,38 +42751,6 @@ public function __isset($key) public function __set($key, $value) { } - /** - * Returns the main site ID for the network. - * - * Internal method used by the magic getter for the 'blog_id' and 'site_id' - * properties. - * - * @since 4.9.0 - * - * @return int The ID of the main site. - */ - private function get_main_site_id() - { - } - /** - * Sets the site name assigned to the network if one has not been populated. - * - * @since 4.4.0 - */ - private function _set_site_name() - { - } - /** - * Sets the cookie domain based on the network domain if one has - * not been populated. - * - * @todo What if the domain of the network doesn't match the current site? - * - * @since 4.4.0 - */ - private function _set_cookie_domain() - { - } /** * Retrieves the closest matching network for a domain and path. * @@ -44492,13 +42796,6 @@ public static function get_by_path($domain = '', $path = '', $segments = \null) #[\AllowDynamicProperties] class WP_Object_Cache { - /** - * Holds the cached objects. - * - * @since 2.0.0 - * @var array - */ - private $cache = array(); /** * The amount of times the cache data was already stored in the cache. * @@ -44520,20 +42817,6 @@ class WP_Object_Cache * @var string[] */ protected $global_groups = array(); - /** - * The blog prefix to prepend to keys in non-global groups. - * - * @since 3.5.0 - * @var string - */ - private $blog_prefix; - /** - * Holds the value of is_multisite(). - * - * @since 3.5.0 - * @var bool - */ - private $multisite; /** * Sets up object properties; PHP 5 style constructor. * @@ -44956,13 +43239,6 @@ class WP_oEmbed * @var array */ public static $early_providers = array(); - /** - * A list of private/protected methods, used for backward compatibility. - * - * @since 4.2.0 - * @var array - */ - private $compat_methods = array('_fetch_with_format', '_parse_json', '_parse_xml', '_parse_xml_body'); /** * Constructor. * @@ -45117,51 +43393,6 @@ public function discover($url) public function fetch($provider, $url, $args = '') { } - /** - * Fetches result from an oEmbed provider for a specific format and complete provider URL - * - * @since 3.0.0 - * - * @param string $provider_url_with_args URL to the provider with full arguments list (url, maxheight, etc.) - * @param string $format Format to use. - * @return object|false|WP_Error The result in the form of an object on success, false on failure. - */ - private function _fetch_with_format($provider_url_with_args, $format) - { - } - /** - * Parses a json response body. - * - * @since 3.0.0 - * - * @param string $response_body - * @return object|false - */ - private function _parse_json($response_body) - { - } - /** - * Parses an XML response body. - * - * @since 3.0.0 - * - * @param string $response_body - * @return object|false - */ - private function _parse_xml($response_body) - { - } - /** - * Serves as a helper function for parsing an XML response body. - * - * @since 3.6.0 - * - * @param string $response_body - * @return stdClass|false - */ - private function _parse_xml_body($response_body) - { - } /** * Converts a data object from WP_oEmbed::fetch() and returns the HTML. * @@ -45359,13 +43590,6 @@ final class WP_Post_Type * @var stdClass $labels */ public $labels; - /** - * Default labels. - * - * @since 6.0.0 - * @var (string|null)[][] $default_labels - */ - protected static $default_labels = array(); /** * A short descriptive summary of what the post type is. * @@ -46463,21 +44687,6 @@ class WP_Query * @var bool */ public $is_post_type_archive = \false; - /** - * Stores the ->query_vars state like md5(serialize( $this->query_vars ) ) so we know - * whether we have to re-parse because something has changed - * - * @since 3.1.0 - * @var bool|string - */ - private $query_vars_hash = \false; - /** - * Whether query vars have changed since the initial parse_query() call. Used to catch modifications to query vars made - * via pre_get_posts hooks. - * - * @since 3.1.1 - */ - private $query_vars_changed = \true; /** * Set if post thumbnails are cached * @@ -46492,25 +44701,6 @@ class WP_Query * @var bool */ protected $allow_query_attachment_by_filename = \false; - /** - * Cached list of search stopwords. - * - * @since 3.7.0 - * @var array - */ - private $stopwords; - private $compat_fields = array('query_vars_hash', 'query_vars_changed'); - private $compat_methods = array('init_query_flags', 'parse_tax_query'); - /** - * Resets query flags to false. - * - * The query flags are what page info WordPress was able to figure out. - * - * @since 2.0.0 - */ - private function init_query_flags() - { - } /** * Initiates object properties and sets default values. * @@ -46906,20 +45096,6 @@ public function set($query_var, $value) public function get_posts() { } - /** - * Set up the amount of found posts and the number of pages (if limit clause was used) - * for the current query. - * - * @since 3.5.0 - * - * @global wpdb $wpdb WordPress database abstraction object. - * - * @param array $q Query variables. - * @param string $limits LIMIT clauses of the query. - */ - private function set_found_posts($q, $limits) - { - } /** * Set up the next post and iterate current post index. * @@ -47643,52 +45819,6 @@ public function validate_cookie($cookie = '') public function get_session_id_from_cookie($cookie = '') { } - /** - * Parses the cookie into its four parts. - * - * @since 5.2.0 - * - * @param string $cookie Cookie content. - * @return array|WP_Error Cookie parts array, or error object on failure. - */ - private function parse_cookie($cookie) - { - } - /** - * Generates the recovery mode cookie value. - * - * The cookie is a base64 encoded string with the following format: - * - * recovery_mode|iat|rand|signature - * - * Where "recovery_mode" is a constant string, - * iat is the time the cookie was generated at, - * rand is a randomly generated password that is also used as a session identifier - * and signature is an hmac of the preceding 3 parts. - * - * @since 5.2.0 - * - * @return string Generated cookie content. - */ - private function generate_cookie() - { - } - /** - * Gets a form of `wp_hash()` specific to Recovery Mode. - * - * We cannot use `wp_hash()` because it is defined in `pluggable.php` which is not loaded until after plugins are loaded, - * which is too late to verify the recovery mode cookie. - * - * This tries to use the `AUTH` salts first, but if they aren't valid specific salts will be generated and stored. - * - * @since 5.2.0 - * - * @param string $data Data to hash. - * @return string|false The hashed $data, or false on failure. - */ - private function recovery_mode_hash($data) - { - } } /** * Error Protection API: WP_Recovery_Mode_Email_Link class @@ -47705,13 +45835,6 @@ private function recovery_mode_hash($data) final class WP_Recovery_Mode_Email_Service { const RATE_LIMIT_OPTION = 'recovery_mode_email_last_sent'; - /** - * Service to generate recovery mode URLs. - * - * @since 5.2.0 - * @var WP_Recovery_Mode_Link_Service - */ - private $link_service; /** * WP_Recovery_Mode_Email_Service constructor. * @@ -47754,98 +45877,6 @@ public function maybe_send_recovery_mode_email($rate_limit, $error, $extension) public function clear_rate_limit() { } - /** - * Sends the Recovery Mode email to the site admin email address. - * - * @since 5.2.0 - * - * @param int $rate_limit Number of seconds before another email can be sent. - * @param array $error Error details from `error_get_last()`. - * @param array $extension { - * The extension that caused the error. - * - * @type string $slug The extension slug. The directory of the plugin or theme. - * @type string $type The extension type. Either 'plugin' or 'theme'. - * } - * @return bool Whether the email was sent successfully. - * @phpstan-param array{ - * slug?: string, - * type?: string, - * } $extension - */ - private function send_recovery_mode_email($rate_limit, $error, $extension) - { - } - /** - * Gets the email address to send the recovery mode link to. - * - * @since 5.2.0 - * - * @return string Email address to send recovery mode link to. - */ - private function get_recovery_mode_email_address() - { - } - /** - * Gets the description indicating the possible cause for the error. - * - * @since 5.2.0 - * - * @param array $extension { - * The extension that caused the error. - * - * @type string $slug The extension slug. The directory of the plugin or theme. - * @type string $type The extension type. Either 'plugin' or 'theme'. - * } - * @return string Message about which extension caused the error. - * @phpstan-param array{ - * slug?: string, - * type?: string, - * } $extension - */ - private function get_cause($extension) - { - } - /** - * Return the details for a single plugin based on the extension data from an error. - * - * @since 5.3.0 - * - * @param array $extension { - * The extension that caused the error. - * - * @type string $slug The extension slug. The directory of the plugin or theme. - * @type string $type The extension type. Either 'plugin' or 'theme'. - * } - * @return array|false A plugin array {@see get_plugins()} or `false` if no plugin was found. - * @phpstan-param array{ - * slug?: string, - * type?: string, - * } $extension - */ - private function get_plugin($extension) - { - } - /** - * Return debug information in an easy to manipulate format. - * - * @since 5.3.0 - * - * @param array $extension { - * The extension that caused the error. - * - * @type string $slug The extension slug. The directory of the plugin or theme. - * @type string $type The extension type. Either 'plugin' or 'theme'. - * } - * @return array An associative array of debug information. - * @phpstan-param array{ - * slug?: string, - * type?: string, - * } $extension - */ - private function get_debug($extension) - { - } } /** * Error Protection API: WP_Recovery_Mode_Key_Service class @@ -47861,13 +45892,6 @@ private function get_debug($extension) #[\AllowDynamicProperties] final class WP_Recovery_Mode_Key_Service { - /** - * The option name used to store the keys. - * - * @since 5.2.0 - * @var string - */ - private $option_name = 'recovery_keys'; /** * Creates a recovery mode token. * @@ -47916,39 +45940,6 @@ public function validate_recovery_mode_key($token, $key, $ttl) public function clean_expired_keys($ttl) { } - /** - * Removes a used recovery key. - * - * @since 5.2.0 - * - * @param string $token The token used when generating a recovery mode key. - */ - private function remove_key($token) - { - } - /** - * Gets the recovery key records. - * - * @since 5.2.0 - * - * @return array Associative array of $token => $data pairs, where $data has keys 'hashed_key' - * and 'created_at'. - */ - private function get_keys() - { - } - /** - * Updates the recovery key records. - * - * @since 5.2.0 - * - * @param array $keys Associative array of $token => $data pairs, where $data has keys 'hashed_key' - * and 'created_at'. - * @return bool True on success, false on failure. - */ - private function update_keys(array $keys) - { - } } /** * Error Protection API: WP_Recovery_Mode_Link_Handler class @@ -47966,20 +45957,6 @@ class WP_Recovery_Mode_Link_Service { const LOGIN_ACTION_ENTER = 'enter_recovery_mode'; const LOGIN_ACTION_ENTERED = 'entered_recovery_mode'; - /** - * Service to generate and validate recovery mode keys. - * - * @since 5.2.0 - * @var WP_Recovery_Mode_Key_Service - */ - private $key_service; - /** - * Service to handle cookies. - * - * @since 5.2.0 - * @var WP_Recovery_Mode_Cookie_Service - */ - private $cookie_service; /** * WP_Recovery_Mode_Link_Service constructor. * @@ -48015,18 +45992,6 @@ public function generate_url() public function handle_begin_link($ttl) { } - /** - * Gets a URL to begin recovery mode. - * - * @since 5.2.0 - * - * @param string $token Recovery Mode token created by {@see generate_recovery_mode_token()}. - * @param string $key Recovery Mode key created by {@see generate_and_store_recovery_mode_key()}. - * @return string Recovery mode begin URL. - */ - private function get_recovery_mode_begin_url($token, $key) - { - } } /** * Error Protection API: WP_Recovery_Mode class @@ -48043,55 +46008,6 @@ private function get_recovery_mode_begin_url($token, $key) class WP_Recovery_Mode { const EXIT_ACTION = 'exit_recovery_mode'; - /** - * Service to handle cookies. - * - * @since 5.2.0 - * @var WP_Recovery_Mode_Cookie_Service - */ - private $cookie_service; - /** - * Service to generate a recovery mode key. - * - * @since 5.2.0 - * @var WP_Recovery_Mode_Key_Service - */ - private $key_service; - /** - * Service to generate and validate recovery mode links. - * - * @since 5.2.0 - * @var WP_Recovery_Mode_Link_Service - */ - private $link_service; - /** - * Service to handle sending an email with a recovery mode link. - * - * @since 5.2.0 - * @var WP_Recovery_Mode_Email_Service - */ - private $email_service; - /** - * Is recovery mode initialized. - * - * @since 5.2.0 - * @var bool - */ - private $is_initialized = \false; - /** - * Is recovery mode active in this session. - * - * @since 5.2.0 - * @var bool - */ - private $is_active = \false; - /** - * Get an ID representing the current recovery mode session. - * - * @since 5.2.0 - * @var string - */ - private $session_id = ''; /** * WP_Recovery_Mode constructor. * @@ -49612,16 +47528,6 @@ class WP_Scripts extends \WP_Dependencies * @var array */ public $default_dirs; - /** - * Holds a string which contains the type attribute for script tag. - * - * If the active theme does not declare HTML5 support for 'script', - * then it initializes as `type='text/javascript'`. - * - * @since 5.3.0 - * @var string - */ - private $type_attr = ''; /** * Constructor. * @@ -49900,17 +47806,6 @@ protected function __construct($user_id) public static final function get_instance($user_id) { } - /** - * Hashes the given session token for storage. - * - * @since 4.0.0 - * - * @param string $token Session token to hash. - * @return string A hash of the session token (a verifier). - */ - private function hash_token($token) - { - } /** * Retrieves a user's session for the given token. * @@ -50460,17 +48355,6 @@ public function get_sites() protected function get_site_ids() { } - /** - * Populates found_sites and max_num_pages properties for the current query - * if the limit clause was used. - * - * @since 4.6.0 - * - * @global wpdb $wpdb WordPress database abstraction object. - */ - private function set_found_sites() - { - } /** * Used internally to generate an SQL string for searching across multiple columns. * @@ -50720,20 +48604,6 @@ public function __isset($key) public function __set($key, $value) { } - /** - * Retrieves the details for this site. - * - * This method is used internally to lazy-load the extended properties of a site. - * - * @since 4.6.0 - * - * @see WP_Site::__get() - * - * @return stdClass A raw site object with all details included. - */ - private function get_details() - { - } } /** * Dependencies API: WP_Styles class @@ -50826,16 +48696,6 @@ class WP_Styles extends \WP_Dependencies * @var array */ public $default_dirs; - /** - * Holds a string which contains the type attribute for style tag. - * - * If the active theme does not declare HTML5 support for 'style', - * then it initializes as `type='text/css'`. - * - * @since 5.3.0 - * @var string - */ - private $type_attr = ''; /** * Constructor. * @@ -50988,13 +48848,6 @@ class WP_Tax_Query * @var string */ public $relation; - /** - * Standard response when the query should not return any rows. - * - * @since 3.2.0 - * @var string - */ - private static $no_results = array('join' => array(''), 'where' => array('0 = 1')); /** * A flat list of table aliases used in the JOIN clauses. * @@ -51210,16 +49063,6 @@ public function get_sql_for_clause(&$clause, $parent_query) protected function find_compatible_table_alias($clause, $parent_query) { } - /** - * Validates a single query. - * - * @since 3.2.0 - * - * @param array $query The single query. Passed by reference. - */ - private function clean_query(&$query) - { - } /** * Transforms a single query, from one field to another. * @@ -51279,13 +49122,6 @@ final class WP_Taxonomy * @var stdClass */ public $labels; - /** - * Default labels. - * - * @since 6.0.0 - * @var (string|null)[][] $default_labels - */ - protected static $default_labels = array(); /** * A short descriptive summary of what the taxonomy is for. * @@ -52529,33 +50365,6 @@ public function set($domain, $locale, $path) public function set_custom_path($domain, $path) { } - /** - * Gets the path to the language directory for the current locale. - * - * Checks the plugins and themes language directories as well as any - * custom directory set via {@see load_plugin_textdomain()} or {@see load_theme_textdomain()}. - * - * @since 6.1.0 - * - * @see _get_path_to_translation_from_lang_dir() - * - * @param string $domain Text domain. - * @param string $locale Locale. - * @return string|false Language directory path or false if there is none available. - */ - private function get_path_from_lang_dir($domain, $locale) - { - } - /** - * Reads and caches all available MO files from a given directory. - * - * @since 6.1.0 - * - * @param string $path Language directory path. - */ - private function set_cached_mo_files($path) - { - } } /** * WP_Theme_JSON_Data class @@ -52570,20 +50379,6 @@ private function set_cached_mo_files($path) #[\AllowDynamicProperties] class WP_Theme_JSON_Data { - /** - * Container of the data to update. - * - * @since 6.1.0 - * @var WP_Theme_JSON - */ - private $theme_json = \null; - /** - * The origin of the data: default, theme, user, etc. - * - * @since 6.1.0 - * @var string - */ - private $origin = ''; /** * Constructor. * @@ -52802,15 +50597,6 @@ public static function get_theme_data($deprecated = array(), $options = array()) public static function get_block_data() { } - /** - * When given an array, this will remove any keys with the name `//`. - * - * @param array $array The array to filter. - * @return array The filtered array. - */ - private static function remove_json_comments($array) - { - } /** * Returns the custom post type that contains the user's origin config * for the active theme or a void array if none are found. @@ -52970,61 +50756,6 @@ class WP_Theme_JSON_Schema public static function migrate($theme_json) { } - /** - * Removes the custom prefixes for a few properties - * that were part of v1: - * - * 'border.customRadius' => 'border.radius', - * 'spacing.customMargin' => 'spacing.margin', - * 'spacing.customPadding' => 'spacing.padding', - * 'typography.customLineHeight' => 'typography.lineHeight', - * - * @since 5.9.0 - * - * @param array $old Data to migrate. - * - * @return array Data without the custom prefixes. - */ - private static function migrate_v1_to_v2($old) - { - } - /** - * Processes the settings subtree. - * - * @since 5.9.0 - * - * @param array $settings Array to process. - * @param array $paths_to_rename Paths to rename. - * - * @return array The settings in the new format. - */ - private static function rename_paths($settings, $paths_to_rename) - { - } - /** - * Processes a settings array, renaming or moving properties. - * - * @since 5.9.0 - * - * @param array $settings Reference to settings either defaults or an individual block's. - * @param array $paths_to_rename Paths to rename. - */ - private static function rename_settings(&$settings, $paths_to_rename) - { - } - /** - * Removes a property from within the provided settings by its path. - * - * @since 5.9.0 - * - * @param array $settings Reference to the current settings array. - * @param array $path Path to the property to be removed. - * - * @return void - */ - private static function unset_setting_by_path(&$settings, $path) - { - } } /** * WP_Theme_JSON class @@ -53824,17 +51555,6 @@ protected static function get_style_nodes($theme_json, $selectors = array()) public function get_styles_block_nodes() { } - /** - * An internal method to get the block nodes from a theme.json file. - * - * @since 6.1.0 - * - * @param array $theme_json The theme.json converted to an array. - * @return array The block nodes in theme.json. - */ - private static function get_block_nodes($theme_json) - { - } /** * Gets the CSS rules for a particular block from theme.json. * @@ -54092,142 +51812,6 @@ final class WP_Theme implements \ArrayAccess * @see WP_MS_Themes_List_Table */ public $update = \false; - /** - * Headers for style.css files. - * - * @since 3.4.0 - * @since 5.4.0 Added `Requires at least` and `Requires PHP` headers. - * @since 6.1.0 Added `Update URI` header. - * @var string[] - */ - private static $file_headers = array('Name' => 'Theme Name', 'ThemeURI' => 'Theme URI', 'Description' => 'Description', 'Author' => 'Author', 'AuthorURI' => 'Author URI', 'Version' => 'Version', 'Template' => 'Template', 'Status' => 'Status', 'Tags' => 'Tags', 'TextDomain' => 'Text Domain', 'DomainPath' => 'Domain Path', 'RequiresWP' => 'Requires at least', 'RequiresPHP' => 'Requires PHP', 'UpdateURI' => 'Update URI'); - /** - * Default themes. - * - * @since 3.4.0 - * @since 3.5.0 Added the Twenty Twelve theme. - * @since 3.6.0 Added the Twenty Thirteen theme. - * @since 3.8.0 Added the Twenty Fourteen theme. - * @since 4.1.0 Added the Twenty Fifteen theme. - * @since 4.4.0 Added the Twenty Sixteen theme. - * @since 4.7.0 Added the Twenty Seventeen theme. - * @since 5.0.0 Added the Twenty Nineteen theme. - * @since 5.3.0 Added the Twenty Twenty theme. - * @since 5.6.0 Added the Twenty Twenty-One theme. - * @since 5.9.0 Added the Twenty Twenty-Two theme. - * @var string[] - */ - private static $default_themes = array('classic' => 'WordPress Classic', 'default' => 'WordPress Default', 'twentyten' => 'Twenty Ten', 'twentyeleven' => 'Twenty Eleven', 'twentytwelve' => 'Twenty Twelve', 'twentythirteen' => 'Twenty Thirteen', 'twentyfourteen' => 'Twenty Fourteen', 'twentyfifteen' => 'Twenty Fifteen', 'twentysixteen' => 'Twenty Sixteen', 'twentyseventeen' => 'Twenty Seventeen', 'twentynineteen' => 'Twenty Nineteen', 'twentytwenty' => 'Twenty Twenty', 'twentytwentyone' => 'Twenty Twenty-One', 'twentytwentytwo' => 'Twenty Twenty-Two', 'twentytwentythree' => 'Twenty Twenty-Three'); - /** - * Renamed theme tags. - * - * @since 3.8.0 - * @var string[] - */ - private static $tag_map = array('fixed-width' => 'fixed-layout', 'flexible-width' => 'fluid-layout'); - /** - * Absolute path to the theme root, usually wp-content/themes - * - * @since 3.4.0 - * @var string - */ - private $theme_root; - /** - * Header data from the theme's style.css file. - * - * @since 3.4.0 - * @var array - */ - private $headers = array(); - /** - * Header data from the theme's style.css file after being sanitized. - * - * @since 3.4.0 - * @var array - */ - private $headers_sanitized; - /** - * Header name from the theme's style.css after being translated. - * - * Cached due to sorting functions running over the translated name. - * - * @since 3.4.0 - * @var string - */ - private $name_translated; - /** - * Errors encountered when initializing the theme. - * - * @since 3.4.0 - * @var WP_Error - */ - private $errors; - /** - * The directory name of the theme's files, inside the theme root. - * - * In the case of a child theme, this is directory name of the child theme. - * Otherwise, 'stylesheet' is the same as 'template'. - * - * @since 3.4.0 - * @var string - */ - private $stylesheet; - /** - * The directory name of the theme's files, inside the theme root. - * - * In the case of a child theme, this is the directory name of the parent theme. - * Otherwise, 'template' is the same as 'stylesheet'. - * - * @since 3.4.0 - * @var string - */ - private $template; - /** - * A reference to the parent theme, in the case of a child theme. - * - * @since 3.4.0 - * @var WP_Theme - */ - private $parent; - /** - * URL to the theme root, usually an absolute URL to wp-content/themes - * - * @since 3.4.0 - * @var string - */ - private $theme_root_uri; - /** - * Flag for whether the theme's textdomain is loaded. - * - * @since 3.4.0 - * @var bool - */ - private $textdomain_loaded; - /** - * Stores an md5 hash of the theme root, to function as the cache key. - * - * @since 3.4.0 - * @var string - */ - private $cache_hash; - /** - * Flag for whether the themes cache bucket should be persistently cached. - * - * Default is false. Can be set with the {@see 'wp_cache_themes_persistently'} filter. - * - * @since 3.4.0 - * @var bool - */ - private static $persistently_cache; - /** - * Expiration time for the themes cache bucket. - * - * By default the bucket is not cached, so this value is useless. - * - * @since 3.4.0 - * @var bool - */ - private static $cache_expiration = 1800; /** * Constructor for WP_Theme. * @@ -54361,33 +51945,6 @@ public function exists() public function parent() { } - /** - * Adds theme data to cache. - * - * Cache entries keyed by the theme and the type of data. - * - * @since 3.4.0 - * - * @param string $key Type of data to store (theme, screenshot, headers, post_templates) - * @param array|string $data Data to store - * @return bool Return value from wp_cache_add() - */ - private function cache_add($key, $data) - { - } - /** - * Gets theme data from cache. - * - * Cache entries are keyed by the theme and the type of data. - * - * @since 3.4.0 - * - * @param string $key Type of data to retrieve (theme, screenshot, headers, post_templates) - * @return mixed Retrieved data - */ - private function cache_get($key) - { - } /** * Clears the cache for the theme. * @@ -54429,47 +51986,6 @@ public function get($header) public function display($header, $markup = \true, $translate = \true) { } - /** - * Sanitizes a theme header. - * - * @since 3.4.0 - * @since 5.4.0 Added support for `Requires at least` and `Requires PHP` headers. - * @since 6.1.0 Added support for `Update URI` header. - * - * @param string $header Theme header. Accepts 'Name', 'Description', 'Author', 'Version', - * 'ThemeURI', 'AuthorURI', 'Status', 'Tags', 'RequiresWP', 'RequiresPHP', - * 'UpdateURI'. - * @param string $value Value to sanitize. - * @return string|array An array for Tags header, string otherwise. - */ - private function sanitize_header($header, $value) - { - } - /** - * Marks up a theme header. - * - * @since 3.4.0 - * - * @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags. - * @param string|array $value Value to mark up. An array for Tags header, string otherwise. - * @param string $translate Whether the header has been translated. - * @return string Value, marked up. - */ - private function markup_header($header, $value, $translate) - { - } - /** - * Translates a theme header. - * - * @since 3.4.0 - * - * @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags. - * @param string|array $value Value to translate. An array for Tags header, string otherwise. - * @return string|array Translated value. An array for Tags header, string otherwise. - */ - private function translate_header($header, $value) - { - } /** * Returns the directory name of the theme's "stylesheet" files, inside the theme root. * @@ -54632,25 +52148,6 @@ public function get_post_templates() public function get_page_templates($post = \null, $post_type = 'page') { } - /** - * Scans a directory for files of a certain extension. - * - * @since 3.4.0 - * - * @param string $path Absolute path to search. - * @param array|string|null $extensions Optional. Array of extensions to find, string of a single extension, - * or null for all extensions. Default null. - * @param int $depth Optional. How many levels deep to search for files. Accepts 0, 1+, or - * -1 (infinite depth). Default 0. - * @param string $relative_path Optional. The basename of the absolute path. Used to control the - * returned path for the found files, particularly when this function - * recurses to lower depths. Default empty. - * @return string[]|false Array of files, keyed by the path to the file relative to the `$path` directory prepended - * with `$relative_path`, with the values being absolute paths. False otherwise. - */ - private static function scandir($path, $extensions = \null, $depth = 0, $relative_path = '') - { - } /** * Loads the theme's textdomain. * @@ -54776,35 +52273,6 @@ public static function network_disable_theme($stylesheets) public static function sort_by_name(&$themes) { } - /** - * Callback function for usort() to naturally sort themes by name. - * - * Accesses the Name header directly from the class for maximum speed. - * Would choke on HTML but we don't care enough to slow it down with strip_tags(). - * - * @since 3.4.0 - * - * @param WP_Theme $a First theme. - * @param WP_Theme $b Second theme. - * @return int Negative if `$a` falls lower in the natural order than `$b`. Zero if they fall equally. - * Greater than 0 if `$a` falls higher in the natural order than `$b`. Used with usort(). - */ - private static function _name_sort($a, $b) - { - } - /** - * Callback function for usort() to naturally sort themes by translated name. - * - * @since 3.4.0 - * - * @param WP_Theme $a First theme. - * @param WP_Theme $b Second theme. - * @return int Negative if `$a` falls lower in the natural order than `$b`. Zero if they fall equally. - * Greater than 0 if `$a` falls higher in the natural order than `$b`. Used with usort(). - */ - private static function _name_sort_i18n($a, $b) - { - } } /** * Session API: WP_User_Meta_Session_Tokens class @@ -54924,20 +52392,6 @@ class WP_User_Query * @var array */ public $query_vars = array(); - /** - * List of found user IDs. - * - * @since 3.1.0 - * @var array - */ - private $results; - /** - * Total number of found users for the current query - * - * @since 3.1.0 - * @var int - */ - private $total_users = 0; /** * Metadata query container. * @@ -54952,7 +52406,6 @@ class WP_User_Query * @var string */ public $request; - private $compat_fields = array('results', 'total_users'); // SQL clauses. public $query_fields; public $query_from; @@ -55487,18 +52940,6 @@ class WP_User * @var string */ public $filter = \null; - /** - * The site ID the capabilities of this user are initialized for. - * - * @since 4.9.0 - * @var int - */ - private $site_id = 0; - /** - * @since 3.3.0 - * @var array - */ - private static $back_compat_keys; /** * Constructor. * @@ -55855,17 +53296,6 @@ public function for_site($site_id = '') public function get_site_id() { } - /** - * Gets the available user capabilities data. - * - * @since 4.9.0 - * - * @return bool[] List of capabilities keyed by the capability name, - * e.g. array( 'edit_posts' => true, 'delete_posts' => false ). - */ - private function get_caps_data() - { - } } /** * Widget API: WP_Widget_Factory class @@ -56381,12 +53811,6 @@ class wp_xmlrpc_server extends \IXR_Server * @var bool */ protected $auth_failed = \false; - /** - * Flags that XML-RPC is enabled - * - * @var bool - */ - private $is_enabled; /** * Registers all of the XMLRPC methods that XMLRPC server understands. * @@ -56399,17 +53823,6 @@ class wp_xmlrpc_server extends \IXR_Server public function __construct() { } - /** - * Set wp_xmlrpc_server::$is_enabled property. - * - * Determine whether the xmlrpc server is enabled on this WordPress install - * and set the is_enabled property accordingly. - * - * @since 5.7.3 - */ - private function set_is_enabled() - { - } /** * Make private/protected methods readable for backward compatibility. * @@ -56781,30 +54194,6 @@ protected function _prepare_user($user, $fields) public function wp_newPost($args) { } - /** - * Helper method for filtering out elements from an array. - * - * @since 3.4.0 - * - * @param int $count Number to compare to one. - * @return bool True if the number is greater than one, false otherwise. - */ - private function _is_greater_than_one($count) - { - } - /** - * Encapsulate the logic for sticking a post - * and determining if the user has permission to do so - * - * @since 4.3.0 - * - * @param array $post_data - * @param bool $update - * @return void|IXR_Error - */ - private function _toggle_sticky($post_data, $update = \false) - { - } /** * Helper method for wp_newPost() and wp_editPost(), containing shared logic. * @@ -59100,15 +56489,6 @@ class wpdb * @var bool */ protected $check_current_query = \true; - /** - * Flag to ensure we don't run into recursion problems when checking the collation. - * - * @since 4.2.0 - * - * @see wpdb::check_safe_collation() - * @var bool - */ - private $checking_collation = \false; /** * Saved info on the table column. * @@ -59509,22 +56889,6 @@ class wpdb * @var string[] */ protected $incompatible_modes = array('NO_ZERO_DATE', 'ONLY_FULL_GROUP_BY', 'STRICT_TRANS_TABLES', 'STRICT_ALL_TABLES', 'TRADITIONAL', 'ANSI'); - /** - * Whether to use mysqli over mysql. Default false. - * - * @since 3.9.0 - * - * @var bool - */ - private $use_mysqli = \false; - /** - * Whether we've managed to successfully connect at some point. - * - * @since 3.9.0 - * - * @var bool - */ - private $has_connected = \false; /** * Time when the last query was performed. * @@ -60037,18 +57401,6 @@ public function check_connection($allow_bail = \true) public function query($query) { } - /** - * Internal function to perform the mysql_query() call. - * - * @since 3.9.0 - * - * @see wpdb::query() - * - * @param string $query The query to run. - */ - private function _do_query($query) - { - } /** * Logs query data. * @@ -63068,27 +60420,6 @@ final class WP_Customize_Selective_Refresh * @var WP_Customize_Manager */ public $manager; - /** - * Registered instances of WP_Customize_Partial. - * - * @since 4.5.0 - * @var WP_Customize_Partial[] - */ - protected $partials = array(); - /** - * Log of errors triggered when partials are rendered. - * - * @since 4.5.0 - * @var array - */ - protected $triggered_errors = array(); - /** - * Keep track of the current partial being rendered. - * - * @since 4.5.0 - * @var string|null - */ - protected $current_partial_id; /** * Plugin bootstrap for Partial Refresh functionality. * @@ -63988,12 +61319,6 @@ class MO extends \Gettext_Translations * @var int */ public $_nplurals = 2; - /** - * Loaded MO file. - * - * @var string - */ - private $filename = ''; /** * Returns the loaded MO file. * @@ -67133,29 +64458,6 @@ public function get_collection_params() public function sanitize_post_statuses($statuses, $request, $parameter) { } - /** - * Prepares the 'tax_query' for a collection of posts. - * - * @since 5.7.0 - * - * @param array $args WP_Query arguments. - * @param WP_REST_Request $request Full details about the request. - * @return array Updated query arguments. - */ - private function prepare_tax_query(array $args, \WP_REST_Request $request) - { - } - /** - * Prepares the collection schema for including and excluding items by terms. - * - * @since 5.7.0 - * - * @param array $query_params Collection schema. - * @return array Updated schema. - */ - private function prepare_taxonomy_limit_schema(array $query_params) - { - } } /** * REST API: WP_REST_Attachments_Controller class @@ -67443,27 +64745,6 @@ protected function get_edit_media_item_args() */ class WP_REST_Revisions_Controller extends \WP_REST_Controller { - /** - * Parent post type. - * - * @since 4.7.0 - * @var string - */ - private $parent_post_type; - /** - * Parent controller. - * - * @since 4.7.0 - * @var WP_REST_Controller - */ - private $parent_controller; - /** - * The base of the parent controller's route. - * - * @since 4.7.0 - * @var string - */ - private $parent_base; /** * Constructor. * @@ -67661,34 +64942,6 @@ protected function prepare_excerpt_response($excerpt, $post) */ class WP_REST_Autosaves_Controller extends \WP_REST_Revisions_Controller { - /** - * Parent post type. - * - * @since 5.0.0 - * @var string - */ - private $parent_post_type; - /** - * Parent post controller. - * - * @since 5.0.0 - * @var WP_REST_Controller - */ - private $parent_controller; - /** - * Revision controller. - * - * @since 5.0.0 - * @var WP_REST_Revisions_Controller - */ - private $revisions_controller; - /** - * The base of the parent controller's route. - * - * @since 5.0.0 - * @var string - */ - private $parent_base; /** * Constructor. * @@ -68026,13 +65279,6 @@ public function get_item_schema() */ class WP_REST_Block_Patterns_Controller extends \WP_REST_Controller { - /** - * Defines whether remote patterns should be loaded. - * - * @since 6.0.0 - * @var bool - */ - private $remote_patterns_loaded; /** * Constructs the controller. * @@ -70903,14 +68149,6 @@ public function get_item_schema() */ class WP_REST_Site_Health_Controller extends \WP_REST_Controller { - /** - * An instance of the site health class. - * - * @since 5.6.0 - * - * @var WP_Site_Health - */ - private $site_health; /** * Site Health controller constructor. * @@ -71674,192 +68912,6 @@ public function parse_url_details($request) public function permissions_check() { } - /** - * Retrieves the document title from a remote URL. - * - * @since 5.9.0 - * - * @param string $url The website URL whose HTML to access. - * @return string|WP_Error The HTTP response from the remote URL on success. - * WP_Error if no response or no content. - */ - private function get_remote_url($url) - { - } - /** - * Parses the title tag contents from the provided HTML. - * - * @since 5.9.0 - * - * @param string $html The HTML from the remote website at URL. - * @return string The title tag contents on success. Empty string if not found. - */ - private function get_title($html) - { - } - /** - * Parses the site icon from the provided HTML. - * - * @since 5.9.0 - * - * @param string $html The HTML from the remote website at URL. - * @param string $url The target website URL. - * @return string The icon URI on success. Empty string if not found. - */ - private function get_icon($html, $url) - { - } - /** - * Parses the meta description from the provided HTML. - * - * @since 5.9.0 - * - * @param array $meta_elements { - * A multi-dimensional indexed array on success, else empty array. - * - * @type string[] $0 Meta elements with a content attribute. - * @type string[] $1 Content attribute's opening quotation mark. - * @type string[] $2 Content attribute's value for each meta element. - * } - * @return string The meta description contents on success. Empty string if not found. - * @phpstan-param array{ - * 0: string[], - * 1: string[], - * 2: string[], - * } $meta_elements - */ - private function get_description($meta_elements) - { - } - /** - * Parses the Open Graph (OG) Image from the provided HTML. - * - * See: https://ogp.me/. - * - * @since 5.9.0 - * - * @param array $meta_elements { - * A multi-dimensional indexed array on success, else empty array. - * - * @type string[] $0 Meta elements with a content attribute. - * @type string[] $1 Content attribute's opening quotation mark. - * @type string[] $2 Content attribute's value for each meta element. - * } - * @param string $url The target website URL. - * @return string The OG image on success. Empty string if not found. - * @phpstan-param array{ - * 0: string[], - * 1: string[], - * 2: string[], - * } $meta_elements - */ - private function get_image($meta_elements, $url) - { - } - /** - * Prepares the metadata by: - * - stripping all HTML tags and tag entities. - * - converting non-tag entities into characters. - * - * @since 5.9.0 - * - * @param string $metadata The metadata content to prepare. - * @return string The prepared metadata. - */ - private function prepare_metadata_for_output($metadata) - { - } - /** - * Utility function to build cache key for a given URL. - * - * @since 5.9.0 - * - * @param string $url The URL for which to build a cache key. - * @return string The cache key. - */ - private function build_cache_key_for_url($url) - { - } - /** - * Utility function to retrieve a value from the cache at a given key. - * - * @since 5.9.0 - * - * @param string $key The cache key. - * @return mixed The value from the cache. - */ - private function get_cache($key) - { - } - /** - * Utility function to cache a given data set at a given cache key. - * - * @since 5.9.0 - * - * @param string $key The cache key under which to store the value. - * @param string $data The data to be stored at the given cache key. - * @return bool True when transient set. False if not set. - */ - private function set_cache($key, $data = '') - { - } - /** - * Retrieves the head element section. - * - * @since 5.9.0 - * - * @param string $html The string of HTML to parse. - * @return string The `..` section on success. Given `$html` if not found. - */ - private function get_document_head($html) - { - } - /** - * Gets all the meta tag elements that have a 'content' attribute. - * - * @since 5.9.0 - * - * @param string $html The string of HTML to be parsed. - * @return array { - * A multi-dimensional indexed array on success, else empty array. - * - * @type string[] $0 Meta elements with a content attribute. - * @type string[] $1 Content attribute's opening quotation mark. - * @type string[] $2 Content attribute's value for each meta element. - * } - * @phpstan-return array{ - * 0: string[], - * 1: string[], - * 2: string[], - * } - */ - private function get_meta_with_content_elements($html) - { - } - /** - * Gets the metadata from a target meta element. - * - * @since 5.9.0 - * - * @param array $meta_elements { - * A multi-dimensional indexed array on success, else empty array. - * - * @type string[] $0 Meta elements with a content attribute. - * @type string[] $1 Content attribute's opening quotation mark. - * @type string[] $2 Content attribute's value for each meta element. - * } - * @param string $attr Attribute that identifies the element with the target metadata. - * @param string $attr_value The attribute's value that identifies the element with the target metadata. - * @return string The metadata on success. Empty string if not found. - * @phpstan-param array{ - * 0: string[], - * 1: string[], - * 2: string[], - * } $meta_elements - */ - private function get_metadata_from_meta_element($meta_elements, $attr, $attr_value) - { - } } /** * REST API: WP_REST_Users_Controller class @@ -72366,31 +69418,6 @@ public function get_item_schema() public function encode_form_data($request) { } - /** - * Returns the output of WP_Widget::widget() when called with the provided - * instance. Used by encode_form_data() to preview a widget. - * @since 5.8.0 - * - * @param string $widget The widget's PHP class name (see class-wp-widget.php). - * @param array $instance Widget instance settings. - * @return string - */ - private function get_widget_preview($widget, $instance) - { - } - /** - * Returns the output of WP_Widget::form() when called with the provided - * instance. Used by encode_form_data() to preview a widget's form. - * - * @since 5.8.0 - * - * @param WP_Widget $widget_object Widget object to call widget() on. - * @param array $instance Widget instance settings. - * @return string - */ - private function get_widget_form($widget_object, $instance) - { - } /** * Renders a single Legacy Widget and wraps it in a JSON-encodable array. * @@ -72403,19 +69430,6 @@ private function get_widget_form($widget_object, $instance) public function render($request) { } - /** - * Renders a page containing a preview of the requested Legacy Widget block. - * - * @since 5.9.0 - * - * @param string $id_base The id base of the requested widget. - * @param array $instance The widget instance attributes. - * - * @return string Rendered Legacy Widget block preview. - */ - private function render_legacy_widget_preview_iframe($id_base, $instance) - { - } /** * Retrieves the query params for collections. * @@ -73469,14 +70483,6 @@ class WP_Sitemaps_Index * @var WP_Sitemaps_Registry */ protected $registry; - /** - * Maximum number of sitemaps to include in an index. - * - * @since 5.5.0 - * - * @var int Maximum number of sitemaps. - */ - private $max_sitemaps = 50000; /** * WP_Sitemaps_Index constructor. * @@ -73628,14 +70634,6 @@ public function get_object_subtypes() #[\AllowDynamicProperties] class WP_Sitemaps_Registry { - /** - * Registered sitemap providers. - * - * @since 5.5.0 - * - * @var WP_Sitemaps_Provider[] Array of registered sitemap providers. - */ - private $providers = array(); /** * Adds a new sitemap provider. * @@ -73777,14 +70775,6 @@ public function render_sitemap($url_list) public function get_sitemap_xml($url_list) { } - /** - * Checks for the availability of the SimpleXML extension and errors if missing. - * - * @since 5.5.0 - */ - private function check_for_simple_xml_availability() - { - } } /** * Sitemaps: WP_Sitemaps_Stylesheet class @@ -74627,16 +71617,6 @@ public function add_rules($css_rules) public function get_css($options = array()) { } - /** - * Combines selectors from the rules store when they have the same styles. - * - * @since 6.1.0 - * - * @return void - */ - private function combine_rules_selectors() - { - } } /** * StyleEngine: WP_Style_Engine class @@ -74679,44 +71659,6 @@ final class WP_Style_Engine * @var array */ const BLOCK_STYLE_DEFINITIONS_METADATA = array('color' => array('text' => array('property_keys' => array('default' => 'color'), 'path' => array('color', 'text'), 'css_vars' => array('color' => '--wp--preset--color--$slug'), 'classnames' => array('has-text-color' => \true, 'has-$slug-color' => 'color')), 'background' => array('property_keys' => array('default' => 'background-color'), 'path' => array('color', 'background'), 'classnames' => array('has-background' => \true, 'has-$slug-background-color' => 'color')), 'gradient' => array('property_keys' => array('default' => 'background'), 'path' => array('color', 'gradient'), 'classnames' => array('has-background' => \true, 'has-$slug-gradient-background' => 'gradient'))), 'border' => array('color' => array('property_keys' => array('default' => 'border-color', 'individual' => 'border-%s-color'), 'path' => array('border', 'color'), 'classnames' => array('has-border-color' => \true, 'has-$slug-border-color' => 'color')), 'radius' => array('property_keys' => array('default' => 'border-radius', 'individual' => 'border-%s-radius'), 'path' => array('border', 'radius')), 'style' => array('property_keys' => array('default' => 'border-style', 'individual' => 'border-%s-style'), 'path' => array('border', 'style')), 'width' => array('property_keys' => array('default' => 'border-width', 'individual' => 'border-%s-width'), 'path' => array('border', 'width')), 'top' => array('value_func' => array(self::class, 'get_individual_property_css_declarations'), 'path' => array('border', 'top'), 'css_vars' => array('color' => '--wp--preset--color--$slug')), 'right' => array('value_func' => array(self::class, 'get_individual_property_css_declarations'), 'path' => array('border', 'right'), 'css_vars' => array('color' => '--wp--preset--color--$slug')), 'bottom' => array('value_func' => array(self::class, 'get_individual_property_css_declarations'), 'path' => array('border', 'bottom'), 'css_vars' => array('color' => '--wp--preset--color--$slug')), 'left' => array('value_func' => array(self::class, 'get_individual_property_css_declarations'), 'path' => array('border', 'left'), 'css_vars' => array('color' => '--wp--preset--color--$slug'))), 'spacing' => array('padding' => array('property_keys' => array('default' => 'padding', 'individual' => 'padding-%s'), 'path' => array('spacing', 'padding'), 'css_vars' => array('spacing' => '--wp--preset--spacing--$slug')), 'margin' => array('property_keys' => array('default' => 'margin', 'individual' => 'margin-%s'), 'path' => array('spacing', 'margin'), 'css_vars' => array('spacing' => '--wp--preset--spacing--$slug'))), 'typography' => array('fontSize' => array('property_keys' => array('default' => 'font-size'), 'path' => array('typography', 'fontSize'), 'classnames' => array('has-$slug-font-size' => 'font-size')), 'fontFamily' => array('property_keys' => array('default' => 'font-family'), 'path' => array('typography', 'fontFamily'), 'classnames' => array('has-$slug-font-family' => 'font-family')), 'fontStyle' => array('property_keys' => array('default' => 'font-style'), 'path' => array('typography', 'fontStyle')), 'fontWeight' => array('property_keys' => array('default' => 'font-weight'), 'path' => array('typography', 'fontWeight')), 'lineHeight' => array('property_keys' => array('default' => 'line-height'), 'path' => array('typography', 'lineHeight')), 'textDecoration' => array('property_keys' => array('default' => 'text-decoration'), 'path' => array('typography', 'textDecoration')), 'textTransform' => array('property_keys' => array('default' => 'text-transform'), 'path' => array('typography', 'textTransform')), 'letterSpacing' => array('property_keys' => array('default' => 'letter-spacing'), 'path' => array('typography', 'letterSpacing')))); - /** - * Util: Extracts the slug in kebab case from a preset string, e.g., "heavenly-blue" from 'var:preset|color|heavenlyBlue'. - * - * @since 6.1.0 - * - * @param string $style_value A single CSS preset value. - * @param string $property_key The CSS property that is the second element of the preset string. Used for matching. - * - * @return string The slug, or empty string if not found. - */ - protected static function get_slug_from_preset_value($style_value, $property_key) - { - } - /** - * Util: Generates a CSS var string, e.g., var(--wp--preset--color--background) from a preset string such as `var:preset|space|50`. - * - * @since 6.1.0 - * - * @param string $style_value A single css preset value. - * @param string[] $css_vars An associate array of css var patterns used to generate the var string. - * - * @return string The css var, or an empty string if no match for slug found. - */ - protected static function get_css_var_value($style_value, $css_vars) - { - } - /** - * Util: Checks whether an incoming block style value is valid. - * - * @since 6.1.0 - * - * @param string $style_value A single CSS preset value. - * - * @return bool - */ - protected static function is_valid_style_value($style_value) - { - } /** * Stores a CSS rule using the provided CSS selector and CSS declarations. * @@ -74774,65 +71716,6 @@ public static function get_store($store_name) public static function parse_block_styles($block_styles, $options) { } - /** - * Returns classnames, and generates classname(s) from a CSS preset property pattern, e.g., '`var:preset||`'. - * - * @since 6.1.0 - * - * @param array $style_value A single raw style value or css preset property from the $block_styles array. - * @param array $style_definition A single style definition from BLOCK_STYLE_DEFINITIONS_METADATA. - * - * @return array|string[] An array of CSS classnames, or empty array. - */ - protected static function get_classnames($style_value, $style_definition) - { - } - /** - * Returns an array of CSS declarations based on valid block style values. - * - * @since 6.1.0 - * - * @param array $style_value A single raw style value from $block_styles array. - * @param array $style_definition A single style definition from BLOCK_STYLE_DEFINITIONS_METADATA. - * @param array $options { - * Optional. An array of options. Default empty array. - * - * @type bool $convert_vars_to_classnames Whether to skip converting incoming CSS var patterns, e.g., `var:preset||`, to var( --wp--preset--* ) values. Default `false`. - * } - * - * @return string[] An associative array of CSS definitions, e.g., array( "$property" => "$value", "$property" => "$value" ). - * @phpstan-param array{ - * convert_vars_to_classnames?: bool, - * } $options - */ - protected static function get_css_declarations($style_value, $style_definition, $options = array()) - { - } - /** - * Style value parser that returns a CSS definition array comprising style properties - * that have keys representing individual style properties, otherwise known as longhand CSS properties. - * e.g., "$style_property-$individual_feature: $value;", which could represent the following: - * "border-{top|right|bottom|left}-{color|width|style}: {value};" or, - * "border-image-{outset|source|width|repeat|slice}: {value};" - * - * @since 6.1.0 - * - * @param array $style_value A single raw style value from $block_styles array. - * @param array $individual_property_definition A single style definition from BLOCK_STYLE_DEFINITIONS_METADATA representing an individual property of a CSS property, e.g., 'top' in 'border-top'. - * @param array $options { - * Optional. An array of options. Default empty array. - * - * @type bool $convert_vars_to_classnames Whether to skip converting incoming CSS var patterns, e.g., `var:preset||`, to var( --wp--preset--* ) values. Default `false`. - * } - * - * @return string[] An associative array of CSS definitions, e.g., array( "$property" => "$value", "$property" => "$value" ). - * @phpstan-param array{ - * convert_vars_to_classnames?: bool, - * } $options - */ - protected static function get_individual_property_css_declarations($style_value, $individual_property_definition, $options = array()) - { - } /** * Returns compiled CSS from css_declarations. * @@ -75033,25 +71916,6 @@ public function __construct() public function widget($args, $instance) { } - /** - * Calculates the classname to use in the block widget's container HTML. - * - * Usually this is set to `$this->widget_options['classname']` by - * dynamic_sidebar(). In this case, however, we want to set the classname - * dynamically depending on the block contained by this block widget. - * - * If a block widget contains a block that has an equivalent legacy widget, - * we display that legacy widget's class name. This helps with theme - * backwards compatibility. - * - * @since 5.8.0 - * - * @param string $content The HTML content of the current block widget. - * @return string The classname to use in the block widget's container HTML. - */ - private function get_dynamic_classname($content) - { - } /** * Handles updating settings for the current Block widget instance. * @@ -75105,13 +71969,6 @@ public function set_is_wide_widget_in_customizer($is_wide, $widget_id) */ class WP_Widget_Calendar extends \WP_Widget { - /** - * Ensure that the ID attribute only appears in the markup once - * - * @since 4.4.0 - * @var int - */ - private static $instance = 0; /** * Sets up a new Calendar widget instance. *