Make WordPress Core

Ticket #10483: post_name_patch_5_3.diff

File post_name_patch_5_3.diff, 1.0 KB (added by mcmwebsol, 5 years ago)

patch for 10453

  • wp-admin/includes/schema.php

     
    168168        comment_status varchar(20) NOT NULL default 'open',
    169169        ping_status varchar(20) NOT NULL default 'open',
    170170        post_password varchar(255) NOT NULL default '',
    171         post_name varchar(200) NOT NULL default '',
     171        post_name varchar(400) NOT NULL default '',
    172172        to_ping text NOT NULL,
    173173        pinged text NOT NULL,
    174174        post_modified datetime NOT NULL default '0000-00-00 00:00:00',
  • wp-includes/formatting.php

     
    22202220                if ( function_exists( 'mb_strtolower' ) ) {
    22212221                        $title = mb_strtolower( $title, 'UTF-8' );
    22222222                }
    2223                 $title = utf8_uri_encode( $title, 200 );
     2223                $title = utf8_uri_encode( $title, 400 );
    22242224        }
    22252225
    22262226        $title = strtolower( $title );