WordPress.org

Make WordPress Core


Ignore:
Location:
branches/4.2
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/package.json

    r32307 r32311  
    11{
    22  "name": "WordPress",
    3   "version": "4.2.0",
     3  "version": "4.2.1",
    44  "description": "WordPress is web software you can use to create a beautiful website or blog.",
    55  "repository": {
  • branches/4.2/src/readme.html

    r32307 r32311  
    1010<h1 id="logo">
    1111    <a href="https://wordpress.org/"><img alt="WordPress" src="wp-admin/images/wordpress-logo.png" /></a>
    12     <br /> Version 4.2
     12    <br /> Version 4.2.1
    1313</h1>
    1414<p style="text-align: center">Semantic Personal Publishing Platform</p>
  • branches/4.2/src/wp-admin/about.php

    r32307 r32311  
    4040    </a>
    4141</h2>
     42
     43<div class="changelog point-releases">
     44    <h3><?php echo _n( 'Security Release', 'Security Releases', 1 ); ?></h3>
     45    <p><?php printf( _n( '<strong>Version %1$s</strong> addressed a security issue.',
     46         '<strong>Version %1$s</strong> addressed some security issues.', 1 ), '4.2.1' ); ?>
     47        <?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'http://codex.wordpress.org/Version_4.2.1' ); ?>
     48    </p>
     49</div>
    4250
    4351<div class="headline-feature feature-video">
  • branches/4.2/src/wp-admin/includes/upgrade.php

    r32307 r32311  
    527527    if ( $wp_current_db_version < 31351 )
    528528        upgrade_420();
     529
     530    if ( $wp_current_db_version < 31533 )
     531        upgrade_421();
    529532
    530533    maybe_disable_link_manager();
     
    14371440
    14381441/**
     1442 * Execute changes made in WordPress 4.2.1.
     1443 *
     1444 * @since 4.2.1
     1445 */
     1446function upgrade_421() {
     1447    global $wp_current_db_version, $wpdb;
     1448
     1449    if ( $wp_current_db_version < 31533 ) {
     1450        $content_length = $wpdb->get_col_length( $wpdb->comments, 'comment_content' );
     1451        if ( ! $content_length ) {
     1452            $content_length = 65535;
     1453        }
     1454
     1455        $comments = $wpdb->get_results(
     1456            "SELECT comment_ID FROM $wpdb->comments
     1457            WHERE comment_date_gmt > '2015-04-26'
     1458            AND CHAR_LENGTH( comment_content ) >= $content_length
     1459            AND ( comment_content LIKE '%<%' OR comment_content LIKE '%>%' )"
     1460        );
     1461
     1462        foreach ( $comments as $comment ) {
     1463            wp_delete_comment( $comment->comment_ID, true );
     1464        }
     1465    }
     1466}
     1467
     1468/**
    14391469 * Executes network-level upgrade routines.
    14401470 *
  • branches/4.2/src/wp-includes/version.php

    r32307 r32311  
    55 * @global string $wp_version
    66 */
    7 $wp_version = '4.2.1-alpha-src';
     7$wp_version = '4.2.1-src';
    88
    99/**
     
    1212 * @global int $wp_db_version
    1313 */
    14 $wp_db_version = 31532;
     14$wp_db_version = 31533;
    1515
    1616/**
Note: See TracChangeset for help on using the changeset viewer.