WordPress.org

Make WordPress Core

Changes from tags/3.0.3 at r45255 to tags/3.0.4 at r45255


Ignore:
Location:
tags/3.0.4
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • tags/3.0.4/readme.html

    r45255 r45255  
    99<h1 id="logo">
    1010    <a href="http://wordpress.org/"><img alt="WordPress" src="wp-admin/images/wordpress-logo.png" width="250" height="68" /></a>
    11     <br /> Version 3.0.3
     11    <br /> Version 3.0.4
    1212</h1>
    1313<p style="text-align: center">Semantic Personal Publishing Platform</p>
  • tags/3.0.4/wp-admin/includes/update-core.php

    r45255 r45255  
    275275    $required_php_version = '4.3';
    276276    $required_mysql_version = '4.1.2';
    277     $wp_version = '3.0.3';
     277    $wp_version = '3.0.4';
    278278    $php_compat     = version_compare( $php_version, $required_php_version, '>=' );
    279279    $mysql_compat   = version_compare( $mysql_version, $required_mysql_version, '>=' ) || file_exists( WP_CONTENT_DIR . '/db.php' );
  • tags/3.0.4/wp-includes/formatting.php

    r45255 r45255  
    22372237    // Replace ampersands and single quotes only when displaying.
    22382238    if ( 'display' == $_context ) {
    2239         $url = preg_replace('/&([^#])(?![a-z]{2,8};)/', '&#038;$1', $url);
     2239        $url = wp_kses_normalize_entities( $url );
     2240        $url = str_replace( '&amp;', '&#038;', $url );
    22402241        $url = str_replace( "'", '&#039;', $url );
    22412242    }
  • tags/3.0.4/wp-includes/kses.php

    r45255 r45255  
    671671                }
    672672
    673             if ( $arreach['name'] == 'style' ) {
     673            if ( strtolower($arreach['name']) == 'style' ) {
    674674                $orig_value = $arreach['value'];
    675675
     
    763763                    {
    764764                    $thisval = $match[1];
    765                     if ( in_array($attrname, $uris) )
     765                    if ( in_array(strtolower($attrname), $uris) )
    766766                        $thisval = wp_kses_bad_protocol($thisval, $allowed_protocols);
    767767
     
    779779                    {
    780780                    $thisval = $match[1];
    781                     if ( in_array($attrname, $uris) )
     781                    if ( in_array(strtolower($attrname), $uris) )
    782782                        $thisval = wp_kses_bad_protocol($thisval, $allowed_protocols);
    783783
     
    795795                    {
    796796                    $thisval = $match[1];
    797                     if ( in_array($attrname, $uris) )
     797                    if ( in_array(strtolower($attrname), $uris) )
    798798                        $thisval = wp_kses_bad_protocol($thisval, $allowed_protocols);
    799799
     
    10181018 */
    10191019function wp_kses_bad_protocol_once($string, $allowed_protocols) {
    1020     global $_kses_allowed_protocols;
    1021     $_kses_allowed_protocols = $allowed_protocols;
    1022 
    1023     $string2 = preg_split('/:|&#58;|&#x3a;/i', $string, 2);
    1024     if ( isset($string2[1]) && !preg_match('%/\?%', $string2[0]) )
    1025         $string = wp_kses_bad_protocol_once2($string2[0]) . trim($string2[1]);
    1026     else
    1027         $string = preg_replace_callback('/^((&[^;]*;|[\sA-Za-z0-9])*)'.'(:|&#58;|&#[Xx]3[Aa];)\s*/', 'wp_kses_bad_protocol_once2', $string);
     1020    $string2 = preg_split( '/:|&#0*58;|&#x0*3a;/i', $string, 2 );
     1021    if ( isset($string2[1]) && ! preg_match('%/\?%', $string2[0]) )
     1022        $string = wp_kses_bad_protocol_once2( $string2[0], $allowed_protocols ) . trim( $string2[1] );
    10281023
    10291024    return $string;
     
    10391034 * @since 1.0.0
    10401035 *
    1041  * @param mixed $matches string or preg_replace_callback() matches array to check for bad protocols
     1036 * @param string $string URI scheme to check against the whitelist
     1037 * @param string $allowed_protocols Allowed protocols
    10421038 * @return string Sanitized content
    10431039 */
    1044 function wp_kses_bad_protocol_once2($matches) {
    1045     global $_kses_allowed_protocols;
    1046 
    1047     if ( is_array($matches) ) {
    1048         if ( empty($matches[1]) )
    1049             return '';
    1050 
    1051         $string = $matches[1];
    1052     } else {
    1053         $string = $matches;
    1054     }
    1055 
     1040function wp_kses_bad_protocol_once2( $string, $allowed_protocols ) {
    10561041    $string2 = wp_kses_decode_entities($string);
    10571042    $string2 = preg_replace('/\s/', '', $string2);
     
    10601045
    10611046    $allowed = false;
    1062     foreach ( (array) $_kses_allowed_protocols as $one_protocol)
    1063         if (strtolower($one_protocol) == $string2) {
     1047    foreach ( (array) $allowed_protocols as $one_protocol )
     1048        if ( strtolower($one_protocol) == $string2 ) {
    10641049            $allowed = true;
    10651050            break;
  • tags/3.0.4/wp-includes/version.php

    r45255 r45255  
    99 * @global string $wp_version
    1010 */
    11 $wp_version = '3.0.3';
     11$wp_version = '3.0.4';
    1212
    1313/**
Note: See TracChangeset for help on using the changeset viewer.