Make WordPress Core


Ignore:
Timestamp:
12/06/2007 07:49:33 PM (17 years ago)
Author:
ryan
Message:

Remove unused vars. Props DD32. see #5418

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r6331 r6364  
    364364}
    365365
    366 function convert_chars($content, $flag = 'obsolete') {
     366function convert_chars($content, $deprecated = '') {
    367367    // Translation of invalid Unicode references range to valid range
    368368    $wp_htmltranswinuni = array(
     
    561561
    562562function format_to_post($content) {
    563     global $wpdb;
    564563    $content = apply_filters('format_to_post', $content);
    565564    return $content;
     
    784783        $hours = round($diff / 3600);
    785784        if ($hours <= 1) {
    786             $hour = 1;
     785            $hours = 1;
    787786        }
    788787        $since = sprintf(__ngettext('%s hour', '%s hours', $hours), $hours);
     
    798797
    799798function wp_trim_excerpt($text) { // Fakes an excerpt if needed
    800     global $post;
    801799    if ( '' == $text ) {
    802800        $text = get_the_content('');
Note: See TracChangeset for help on using the changeset viewer.