mirror of
https://github.com/WordPress/WordPress.git
synced 2024-08-19 20:33:00 +02:00
[35333] implemented `public=false` for taxonomies. The implementation prevented non-public taxonomies from having their archives accessed via query_var during a normal request. But it didn't prevent non-public taxonomies from registering their query vars in the `$wp_taxonomies` global. The latter implementation details causes problems specifically when a taxonomy is registered with `query_var=true`; for public taxonomies, `register_taxonomy()` translates this into a query_var equivalent to the taxonomy name, but in the case of non-public taxonomies, the query_var was set to the boolean itself. The boolean then causes problems when using non-strict comparison to filter taxonomy objects by query_var, as when using `get_taxonomies()`. This changeset addresses the issue by forcing the query_var property of non-public taxonomies to `false`. Merges [36108] to the 4.4 branch. Fixes #35089. Built from https://develop.svn.wordpress.org/branches/4.4@36109 git-svn-id: http://core.svn.wordpress.org/branches/4.4@36074 1a063a9b-81f0-0310-95a4-ce76da25c4cd
36 lines
631 B
PHP
36 lines
631 B
PHP
<?php
|
|
/**
|
|
* The WordPress version string
|
|
*
|
|
* @global string $wp_version
|
|
*/
|
|
$wp_version = '4.4.1-alpha-36109';
|
|
|
|
/**
|
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
|
*
|
|
* @global int $wp_db_version
|
|
*/
|
|
$wp_db_version = 35700;
|
|
|
|
/**
|
|
* Holds the TinyMCE version
|
|
*
|
|
* @global string $tinymce_version
|
|
*/
|
|
$tinymce_version = '4208-20151113';
|
|
|
|
/**
|
|
* 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';
|