Changeset 16668
- Timestamp:
- 12/01/2010 08:39:15 PM (14 years ago)
- Location:
- branches/3.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/wp-admin/includes/media.php
r16646 r16668 380 380 381 381 function _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>"; 383 383 } 384 384 -
branches/3.0/wp-includes/post.php
r16650 r16668 801 801 * @param string $post_type Name of the post type. 802 802 * @param array|string $args See above description. 803 * @return object |WP_Error the registered post type object, or an errorobject803 * @return object the registered post type object 804 804 */ 805 805 function register_post_type($post_type, $args = array()) { … … 822 822 $post_type = sanitize_user($post_type, true); 823 823 $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' ) );827 824 828 825 // If not set, default to the setting for public.
Note: See TracChangeset
for help on using the changeset viewer.