WordPress.org

Make WordPress Core

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


Ignore:
Location:
tags/3.0.3
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • tags/3.0.3/readme.html

    r48281 r48281  
    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.4
     11    <br /> Version 3.0.3
    1212</h1>
    1313<p style="text-align: center">Semantic Personal Publishing Platform</p>
  • tags/3.0.3/wp-admin/includes/update-core.php

    r48281 r48281  
    275275    $required_php_version = '4.3';
    276276    $required_mysql_version = '4.1.2';
    277     $wp_version = '3.0.4';
     277    $wp_version = '3.0.3';
    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.3/wp-includes/formatting.php

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

    r48281 r48281  
    671671                }
    672672
    673             if ( strtolower($arreach['name']) == 'style' ) {
     673            if ( $arreach['name'] == 'style' ) {
    674674                $orig_value = $arreach['value'];
    675675
     
    763763                    {
    764764                    $thisval = $match[1];
    765                     if ( in_array(strtolower($attrname), $uris) )
     765                    if ( in_array($attrname, $uris) )
    766766                        $thisval = wp_kses_bad_protocol($thisval, $allowed_protocols);
    767767
     
    779779                    {
    780780                    $thisval = $match[1];
    781                     if ( in_array(strtolower($attrname), $uris) )
     781                    if ( in_array($attrname, $uris) )
    782782                        $thisval = wp_kses_bad_protocol($thisval, $allowed_protocols);
    783783
     
    795795                    {
    796796                    $thisval = $match[1];
    797                     if ( in_array(strtolower($attrname), $uris) )
     797                    if ( in_array($attrname, $uris) )
    798798                        $thisval = wp_kses_bad_protocol($thisval, $allowed_protocols);
    799799
     
    10181018 */
    10191019function wp_kses_bad_protocol_once($string, $allowed_protocols) {
    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] );
     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);
    10231028
    10241029    return $string;
     
    10341039 * @since 1.0.0
    10351040 *
    1036  * @param string $string URI scheme to check against the whitelist
    1037  * @param string $allowed_protocols Allowed protocols
     1041 * @param mixed $matches string or preg_replace_callback() matches array to check for bad protocols
    10381042 * @return string Sanitized content
    10391043 */
    1040 function wp_kses_bad_protocol_once2( $string, $allowed_protocols ) {
     1044function 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
    10411056    $string2 = wp_kses_decode_entities($string);
    10421057    $string2 = preg_replace('/\s/', '', $string2);
     
    10451060
    10461061    $allowed = false;
    1047     foreach ( (array) $allowed_protocols as $one_protocol )
    1048         if ( strtolower($one_protocol) == $string2 ) {
     1062    foreach ( (array) $_kses_allowed_protocols as $one_protocol)
     1063        if (strtolower($one_protocol) == $string2) {
    10491064            $allowed = true;
    10501065            break;
  • tags/3.0.3/wp-includes/version.php

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