2004-01-27 20:52:58 -05:00
|
|
|
<?php
|
2018-10-01 17:00:26 -04:00
|
|
|
/**
|
|
|
|
* WordPress Version
|
|
|
|
*
|
|
|
|
* Contains version information for the current WordPress release.
|
|
|
|
*
|
|
|
|
* @package WordPress
|
2021-06-21 00:29:56 -04:00
|
|
|
* @since 1.2.0
|
2018-10-01 17:00:26 -04:00
|
|
|
*/
|
|
|
|
|
2008-01-04 15:05:07 -05:00
|
|
|
/**
|
2020-02-09 22:30:06 -05:00
|
|
|
* The WordPress version string.
|
2008-01-04 15:05:07 -05:00
|
|
|
*
|
2021-09-14 13:31:59 -04:00
|
|
|
* Holds the current version number for WordPress core. Used to bust caches
|
|
|
|
* and to enable development mode for scripts when running from the /src directory.
|
|
|
|
*
|
2008-01-04 15:05:07 -05:00
|
|
|
* @global string $wp_version
|
|
|
|
*/
|
Editor: Improve performance of _register_theme_block_patterns function.
The `_register_theme_block_patterns` function imposed a significant resource overhead. This issue primarily stems from themes, such as TT4, that register a substantial number of block patterns. These patterns necessitate numerous file operations, including file lookups, file reading into memory, and related processes. To provide an overview, the _register_theme_block_patterns function performed the following file operations:
- is_dir
- is_readable
- file_exists
- glob
- file_get_contents (utilized via get_file_data)
To address these issues, caching using a transient has been added to a new function call `_wp_get_block_patterns`. If theme development mode is disabled and theme exists, the block patterns are saved in a transient cache. This cache is used all requests after that, saving file lookups and reading files into memory. Cache invalidation is done, when themes are switched, deleted or updated. Meaning that block patterns are not stored in the cache incorrectly.
Props flixos90, joemcgill, peterwilsoncc, costdev, swissspidy, aristath, westonruter, spacedmonkey.
Fixes #59490
Built from https://develop.svn.wordpress.org/trunk@56765
git-svn-id: http://core.svn.wordpress.org/trunk@56277 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-03 11:18:19 -04:00
|
|
|
$wp_version = '6.4-beta1-56765';
|
2008-01-04 15:05:07 -05:00
|
|
|
|
|
|
|
/**
|
2008-06-24 13:45:33 -04:00
|
|
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
2008-01-04 15:05:07 -05:00
|
|
|
*
|
|
|
|
* @global int $wp_db_version
|
|
|
|
*/
|
Media: Disable attachment pages for new installations.
WordPress creates attachment pages by default for every attachment uploaded. On the vast majority of sites, these attachment pages don't contain any meaningful information. They do however exist, get indexed by search engines, and sometimes even rank in search results, leading to bad results for users and site owners.
This commit introduces a `wp_attachment_pages_enabled` database option to control the attachment pages behavior:
* On existing sites, the option is set to `1` on upgrade, so that attachment pages continue to work as is.
* For new sites, the option is set to to `0` by default, which means attachment pages are redirected to the attachment URL.
* Sites that want to enable or disable the attachment pages can set the option to `1` or `0`, respectively.
Follow-up to [2958], [3303], [7149], [34690].
Props aristath, poena, afercia, joostdevalk, jonoaldersonwp, azaozz, johnbillion, joedolson, basiliskan, audrasjb, davelo, rilwis, manfcarlo, tyxla, garrett-eclipse, seedsca, eatingrules, matveb, antpb, zodiac1978, oglekler, zunaid321, costdev, SergeyBiryukov.
Fixes #57913.
Built from https://develop.svn.wordpress.org/trunk@56657
git-svn-id: http://core.svn.wordpress.org/trunk@56169 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-09-21 20:04:41 -04:00
|
|
|
$wp_db_version = 56657;
|
2004-01-27 20:52:58 -05:00
|
|
|
|
2009-05-18 16:29:26 -04:00
|
|
|
/**
|
2020-02-09 22:30:06 -05:00
|
|
|
* Holds the TinyMCE version.
|
2009-05-18 16:29:26 -04:00
|
|
|
*
|
|
|
|
* @global string $tinymce_version
|
|
|
|
*/
|
2020-11-10 05:44:08 -05:00
|
|
|
$tinymce_version = '49110-20201110';
|
2009-05-18 16:29:26 -04:00
|
|
|
|
2009-12-17 13:46:19 -05:00
|
|
|
/**
|
2020-02-09 22:30:06 -05:00
|
|
|
* Holds the required PHP version.
|
2009-12-17 13:46:19 -05:00
|
|
|
*
|
|
|
|
* @global string $required_php_version
|
|
|
|
*/
|
General: Increase the minimum supported version of PHP to 7.0.0.
This also removes the random compat library which is no longer necessary, and adjusts unit tests and CI workflows that no longer need to take PHP 5.6 into account.
Thank you for your service, PHP 5. Onwards!
Props SergeyBiryukov, mukesh27, dingo_d, audrasjb, jrf, costdev, azaozz, JavierCasares, hellofromTonya, samiamnot, spacedmonkey, masteradhoc, knutsp, garyjones, chanthaboune
Fixes #57345
Built from https://develop.svn.wordpress.org/trunk@56141
git-svn-id: http://core.svn.wordpress.org/trunk@55653 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-07-05 13:41:22 -04:00
|
|
|
$required_php_version = '7.0.0';
|
2009-12-17 13:46:19 -05:00
|
|
|
|
|
|
|
/**
|
2020-02-09 22:30:06 -05:00
|
|
|
* Holds the required MySQL version.
|
2009-12-17 13:46:19 -05:00
|
|
|
*
|
|
|
|
* @global string $required_mysql_version
|
|
|
|
*/
|
2011-03-21 14:30:56 -04:00
|
|
|
$required_mysql_version = '5.0';
|