Changeset 1356
- Timestamp:
- 07/08/08 11:16:47 (5 months ago)
- Files:
-
- trunk/wp-admin/import/wp-cat2tag.php (modified) (1 diff)
- trunk/wp-app.php (modified) (2 diffs)
- trunk/wp-includes/category-template.php (modified) (1 diff)
- trunk/wp-includes/functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/import/wp-cat2tag.php
r1350 r1356 15 15 echo '</div>'; 16 16 } 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&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&step=3"><?php _e( "Tags to Categories" ); ?></a></p></div> 19 19 <?php } 20 20 } trunk/wp-app.php
r1347 r1356 198 198 // check to see if AtomPub is enabled 199 199 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') ) ); 201 201 202 202 // dispatch … … 940 940 } 941 941 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 942 950 function not_found() { 943 951 log_app('Status','404: Not Found'); trunk/wp-includes/category-template.php
r1336 r1356 416 416 $tag_id = $tag_ids[$tag]; 417 417 $tag_link = clean_url($tag_links[$tag]); 418 $tag = str_replace(' ', ' ', wp_specialchars( $tag ));419 418 $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: " . 420 419 ( $smallest + ( ( $count - $min_count ) * $font_step ) ) trunk/wp-includes/functions.php
r1355 r1356 1489 1489 } 1490 1490 1491 $bdir = $dir; 1492 $burl = $url; 1493 1491 1494 $subdir = ''; 1492 1495 if ( get_option( 'uploads_use_yearmonth_folders' ) ) { … … 1508 1511 } 1509 1512 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 ); 1511 1514 return apply_filters( 'upload_dir', $uploads ); 1512 1515 }
