WordPress.org

Make WordPress Core

Ticket #27133: 27133.patch

File 27133.patch, 497 bytes (added by OriginalEXE, 7 years ago)

Proposed improvement

  • src/wp-includes/taxonomy.php

     
    19721972        if ( !is_array($taxonomies) )
    19731973                $taxonomies = array($taxonomies);
    19741974
    1975         foreach ( (array) $taxonomies as $taxonomy ) {
     1975        foreach ( $taxonomies as $taxonomy ) {
    19761976                if ( ! taxonomy_exists($taxonomy) )
    19771977                        return new WP_Error('invalid_taxonomy', __('Invalid taxonomy'));
    19781978        }