WordPress.org

Make WordPress Core

Ticket #10483: post_name_len_increase_new.diff

File post_name_len_increase_new.diff, 996 bytes (added by mcmwebsol, 8 months ago)

Refreshed patch against trunk

  • src/wp-admin/includes/schema.php

     
    6464) $charset_collate;
    6565CREATE TABLE $wpdb->terms (
    6666 term_id bigint(20) unsigned NOT NULL auto_increment,
    67  name varchar(200) NOT NULL default '',
     67 name varchar(400) NOT NULL default '',
    6868 slug varchar(200) NOT NULL default '',
    6969 term_group bigint(10) NOT NULL default 0,
    7070 PRIMARY KEY  (term_id),
  • src/wp-includes/formatting.php

     
    22332233                if ( function_exists( 'mb_strtolower' ) ) {
    22342234                        $title = mb_strtolower( $title, 'UTF-8' );
    22352235                }
    2236                 $title = utf8_uri_encode( $title, 200 );
     2236                $title = utf8_uri_encode( $title, 400 );
    22372237        }
    22382238
    22392239        $title = strtolower( $title );