mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 15:31:42 +01:00
Taxonomy: Disallow overriding the name
property when registering a taxonomy.
Props wpfo for initial patch. Fixes #39308. Built from https://develop.svn.wordpress.org/trunk@40049 git-svn-id: http://core.svn.wordpress.org/trunk@39986 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6de5a9f8e3
commit
71fb840a24
@ -333,6 +333,8 @@ final class WP_Taxonomy {
|
||||
}
|
||||
}
|
||||
|
||||
$args['name'] = $this->name;
|
||||
|
||||
foreach ( $args as $property_name => $property_value ) {
|
||||
$this->$property_name = $property_value;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.8-alpha-40048';
|
||||
$wp_version = '4.8-alpha-40049';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user