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:
@@ -333,6 +333,8 @@ final class WP_Taxonomy {
|
||||
}
|
||||
}
|
||||
|
||||
$args['name'] = $this->name;
|
||||
|
||||
foreach ( $args as $property_name => $property_value ) {
|
||||
$this->$property_name = $property_value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user