WordPress.org

Make WordPress Core

Changeset 16668


Ignore:
Timestamp:
12/01/10 20:39:15 (3 years ago)
Author:
markjaquith
Message:

Doh. [16646] and [16650] were made against the wrong branch. Revert. see #13709. see #15621

Location:
branches/3.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/wp-admin/includes/media.php

    r16646 r16668  
    380380 
    381381function _media_button($title, $icon, $type) { 
    382     return "<a href='" . esc_url( get_upload_iframe_src($type) ) . "' id='add_$type' class='thickbox' title='$title'><img src='" . esc_url( admin_url( $icon ) ) . "' alt='$title' onclick='return false;' /></a>"; 
     382    return "<a href='" . esc_url( get_upload_iframe_src($type) ) . "' id='add_$type' class='thickbox' title='$title'><img src='" . esc_url( admin_url( $icon ) ) . "' alt='$title' /></a>"; 
    383383} 
    384384 
  • branches/3.0/wp-includes/post.php

    r16650 r16668  
    801801 * @param string $post_type Name of the post type. 
    802802 * @param array|string $args See above description. 
    803  * @return object|WP_Error the registered post type object, or an error object 
     803 * @return object the registered post type object 
    804804 */ 
    805805function register_post_type($post_type, $args = array()) { 
     
    822822    $post_type = sanitize_user($post_type, true); 
    823823    $args->name = $post_type; 
    824  
    825     if ( strlen( $post_type ) > 20 ) 
    826             return new WP_Error( 'post_type_too_long', __( 'Post types cannot exceed 20 characters in length' ) ); 
    827824 
    828825    // If not set, default to the setting for public. 
Note: See TracChangeset for help on using the changeset viewer.