mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-04 06:31:31 +01:00
93bcd86b2a
When there are hundreds of settings and controls (e.g. nav menu items and widget instances) the resulting object that is JSON-encoded can become very large, and `wp_json_encode()` can consume a lot of memory to serialize it. By breaking down the serialization into multiple calls the peak memory usage can be kept in line. Moves logic out of `wp-admin/customize.php` into the `WP_Customize_Manager` class with new methods: * `is_ios()` * `get_document_title_template()` * `get_preview_url()`/`set_preview_url()` * `get_return_url()`/`set_return_url()` * `get_autofocus()`/`set_autofocus()` * `customize_pane_settings()` Includes unit tests for these methods, for which the logic was formerly untestable in `customize.php`. Fixes #33898. Built from https://develop.svn.wordpress.org/trunk@34269 git-svn-id: http://core.svn.wordpress.org/trunk@34233 1a063a9b-81f0-0310-95a4-ce76da25c4cd
36 lines
629 B
PHP
36 lines
629 B
PHP
<?php
|
|
/**
|
|
* The WordPress version string
|
|
*
|
|
* @global string $wp_version
|
|
*/
|
|
$wp_version = '4.4-alpha-34269';
|
|
|
|
/**
|
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
|
*
|
|
* @global int $wp_db_version
|
|
*/
|
|
$wp_db_version = 34030;
|
|
|
|
/**
|
|
* Holds the TinyMCE version
|
|
*
|
|
* @global string $tinymce_version
|
|
*/
|
|
$tinymce_version = '4205-20150908';
|
|
|
|
/**
|
|
* Holds the required PHP version
|
|
*
|
|
* @global string $required_php_version
|
|
*/
|
|
$required_php_version = '5.2.4';
|
|
|
|
/**
|
|
* Holds the required MySQL version
|
|
*
|
|
* @global string $required_mysql_version
|
|
*/
|
|
$required_mysql_version = '5.0';
|