Changeset 1356

Show
Ignore:
Timestamp:
07/08/08 11:16:47 (5 months ago)
Author:
donncha
Message:

WP merge to revision 8283

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/import/wp-cat2tag.php

    r1350 r1356  
    1515                        echo '</div>'; 
    1616                } else { ?> 
    17                         <div class="tablenav"><p style="margin:4px"><a style="display:inline;" class="button-secondary" href="admin.php?import=wp-cat2tag">Categories to Tags</a> 
    18                         <a style="display:inline;" class="button-secondary" href="admin.php?import=wp-cat2tag&amp;step=3">Tags to Categories</a></p></div> 
     17                        <div class="tablenav"><p style="margin:4px"><a style="display:inline;" class="button-secondary" href="admin.php?import=wp-cat2tag"><?php _e( "Categories to Tags" ); ?></a> 
     18                        <a style="display:inline;" class="button-secondary" href="admin.php?import=wp-cat2tag&amp;step=3"><?php _e( "Tags to Categories" ); ?></a></p></div> 
    1919<?php   } 
    2020        } 
  • trunk/wp-app.php

    r1347 r1356  
    198198                // check to see if AtomPub is enabled 
    199199                if( !get_option( 'enable_app' ) ) 
    200                         $this->not_allowed( sprintf( __( 'AtomPub services are disabled on this blog.  An admin user can enable them at %s' ), admin_url('options-writing.php') ) ); 
     200                        $this->forbidden( sprintf( __( 'AtomPub services are disabled on this blog.  An admin user can enable them at %s' ), admin_url('options-writing.php') ) ); 
    201201 
    202202                // dispatch 
     
    940940        } 
    941941 
     942        function forbidden($reason='') { 
     943                log_app('Status','403: Forbidden'); 
     944                header('Content-Type: text/plain'); 
     945                status_header('403'); 
     946                echo $reason; 
     947                exit; 
     948        } 
     949 
    942950        function not_found() { 
    943951                log_app('Status','404: Not Found'); 
  • trunk/wp-includes/category-template.php

    r1336 r1356  
    416416                $tag_id = $tag_ids[$tag]; 
    417417                $tag_link = clean_url($tag_links[$tag]); 
    418                 $tag = str_replace(' ', '&nbsp;', wp_specialchars( $tag )); 
    419418                $a[] = "<a href='$tag_link' class='tag-link-$tag_id' title='" . attribute_escape( sprintf( __ngettext('%d topic','%d topics',$count), $count ) ) . "'$rel style='font-size: " . 
    420419                        ( $smallest + ( ( $count - $min_count ) * $font_step ) ) 
  • trunk/wp-includes/functions.php

    r1355 r1356  
    14891489        } 
    14901490 
     1491        $bdir = $dir;  
     1492        $burl = $url; 
     1493 
    14911494        $subdir = ''; 
    14921495        if ( get_option( 'uploads_use_yearmonth_folders' ) ) { 
     
    15081511        } 
    15091512 
    1510         $uploads = array( 'path' => $dir, 'url' => $url, 'subdir' => $subdir, 'error' => false ); 
     1513        $uploads = array( 'path' => $dir, 'url' => $url, 'subdir' => $subdir, 'basedir' => $bdir, 'baseurl' => $burl, 'error' => false ); 
    15111514        return apply_filters( 'upload_dir', $uploads ); 
    15121515}