Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Doh. [16646] and [16650] were made against the wrong branch. Revert. …

…see #13709. see #15621

git-svn-id: http://svn.automattic.com/wordpress/branches/3.0@16668 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
commit 42ee855438dab0a7c4c5e9033ee3bf26b67fc478 1 parent b100afd
markjaquith authored

Showing 2 changed files with 2 additions and 5 deletions. Show diff stats Hide diff stats

  1. +1 1  wp-admin/includes/media.php
  2. +1 4 wp-includes/post.php
2  wp-admin/includes/media.php
@@ -379,7 +379,7 @@ function media_buttons() {
379 379 add_action( 'media_buttons', 'media_buttons' );
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
385 385 function get_upload_iframe_src($type) {
5 wp-includes/post.php
@@ -800,7 +800,7 @@ function get_post_types( $args = array(), $output = 'names', $operator = 'and' )
800 800 *
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 error object
  803 + * @return object the registered post type object
804 804 */
805 805 function register_post_type($post_type, $args = array()) {
806 806 global $wp_post_types, $wp_rewrite, $wp;
@@ -822,9 +822,6 @@ function register_post_type($post_type, $args = array()) {
822 822 $post_type = sanitize_user($post_type, true);
823 823 $args->name = $post_type;
824 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   -
828 825 // If not set, default to the setting for public.
829 826 if ( null === $args->publicly_queryable )
830 827 $args->publicly_queryable = $args->public;

0 comments on commit 42ee855

Please sign in to comment.
Something went wrong with that request. Please try again.