5ea07785b3
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. git-svn-id: https://develop.svn.wordpress.org/trunk@34269 602fd350-edb4-49c9-b593-d223f7449a82 |
||
---|---|---|
src | ||
tests | ||
tools/i18n | ||
.editorconfig | ||
.gitignore | ||
.jshintrc | ||
.travis.yml | ||
Gruntfile.js | ||
package.json | ||
phpunit.xml.dist | ||
wp-cli.yml | ||
wp-config-sample.php | ||
wp-tests-config-sample.php |