Make WordPress Core

Ticket #19387: longtext_post_content_filtered.diff

File longtext_post_content_filtered.diff, 1.5 KB (added by ejdanderson, 15 years ago)

$wpdb->posts not wp_posts

  • wp-includes/version.php

     
    1111 *
    1212 * @global int $wp_db_version
    1313 */
    14 $wp_db_version = 19470;
     14$wp_db_version = 19471;
    1515
    1616/**
    1717 * Holds the TinyMCE version
  • wp-admin/includes/upgrade.php

     
    11561156                && is_main_site() && ! defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) )
    11571157                        delete_metadata( 'user', 0, 'dismissed_wp_pointers', '', true );
    11581158
     1159        if ( $wp_current_db_version < 19471 ) {
     1160                $wpdb->query("ALTER TABLE $wpdb->posts CHANGE post_content_filtered post_content_filtered LONGTEXT NOT NULL");
     1161        }
     1162
    11591163        if ( $wp_current_db_version >= 11548 )
    11601164                return;
    11611165
  • wp-admin/includes/schema.php

     
    161161  pinged text NOT NULL,
    162162  post_modified datetime NOT NULL default '0000-00-00 00:00:00',
    163163  post_modified_gmt datetime NOT NULL default '0000-00-00 00:00:00',
    164   post_content_filtered text NOT NULL,
     164  post_content_filtered longtext NOT NULL,
    165165  post_parent bigint(20) unsigned NOT NULL default '0',
    166166  guid varchar(255) NOT NULL default '',
    167167  menu_order int(11) NOT NULL default '0',