WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #21593


Ignore:
Timestamp:
08/15/12 16:30:31 (3 years ago)
Author:
nacin
Comment:

In register_post_type(), we do:

if ( strlen( $post_type ) > 20 )
		return new WP_Error( 'post_type_too_long', __( 'Post types cannot exceed 20 characters in length' ) );

Seems like a good thing here.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21593

    • Property Summary changed from create_taxonomy() doesn't fail when taxonomy name too long to register_taxonomy() doesn't fail when taxonomy name too long
  • Ticket #21593 – Description

    initial v1  
    1 The 'taxonomy' field of the 'term_taxonomy' table is VARCHAR(32), ie truncated at 32 characters. But create_taxonomy() doesn't fail when you try to create a taxonomy with a unique name longer than this. 
     1The 'taxonomy' field of the 'term_taxonomy' table is VARCHAR(32), ie truncated at 32 characters. But register_taxonomy() doesn't fail when you try to create a taxonomy with a unique name longer than this. 
    22 
    33The effects are that terms can be added to 'terms' table along with corresponding entries in 'term_taxonomy', but that these can't be read back again. The taxonomy appears in the admin menus, but appears to be totally empty.