Make WordPress Core


Ignore:
Timestamp:
02/13/2015 04:26:37 PM (9 years ago)
Author:
johnbillion
Message:

Return a WP_Error if an empty name is provided when registering a taxonomy.

Fixes #31135
Props tyxla, MikeHansenMe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/taxonomy.php

    r31307 r31449  
    155155
    156156    /**
     157     * @ticket 31135
     158     *
     159     * @expectedIncorrectUsage register_taxonomy
     160     */
     161    function test_register_short_taxonomy() {
     162        $this->assertInstanceOf( 'WP_Error', register_taxonomy( '', 'post', array() ) );
     163    }
     164
     165    /**
    157166     * @ticket 21593
    158167     *
Note: See TracChangeset for help on using the changeset viewer.