mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Add @access private to _get_custom_object_labels(), which was already implied by the dangling underscore. Cast $labels to array in get_taxonomy_labels() and _get_custom_object_labels().
Props nacin, foofy. Fixes #16310. git-svn-id: https://develop.svn.wordpress.org/trunk@25553 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -438,6 +438,8 @@ function register_taxonomy( $taxonomy, $object_type, $args = array() ) {
|
||||
*/
|
||||
|
||||
function get_taxonomy_labels( $tax ) {
|
||||
$tax->labels = (array) $tax->labels;
|
||||
|
||||
if ( isset( $tax->helps ) && empty( $tax->labels['separate_items_with_commas'] ) )
|
||||
$tax->labels['separate_items_with_commas'] = $tax->helps;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user