WordPress.org

Plugin Directory

Changeset 535775


Ignore:
Timestamp:
04/24/12 19:53:54 (2 years ago)
Author:
josephscott
Message:

Don't use variable function for esc_url vs. clean_url

File:
1 edited

Legend:

Unmodified
Added
Removed
  • akismet/trunk/admin.php

    r535391 r535775  
    470470    global $submenu, $wp_db_version; 
    471471 
    472     // clean_url was deprecated in WP 3.0 
    473     $esc_url = 'clean_url'; 
    474     if ( function_exists( 'esc_url' ) ) 
    475         $esc_url = 'esc_url'; 
    476  
    477472    if ( 8645 < $wp_db_version  ) // 2.7 
    478473        $link = 'edit-comments.php?comment_status=spam'; 
     
    492487    } 
    493488 
     489    $link = function_exists( 'esc_url' ) ? esc_url( $link ) : clean_url( $link ); 
    494490    if ( $queue_count = akismet_spam_count() ) { 
    495491        $queue_text = sprintf( _n( 
     
    497493            'There are <a href="%2$s">%1$s comments</a> in your spam queue right now.', 
    498494            $queue_count 
    499         ), number_format_i18n( $queue_count ), $esc_url($link) ); 
     495        ), number_format_i18n( $queue_count ), $link ); 
    500496    } else { 
    501         $queue_text = sprintf( __( "There's nothing in your <a href='%1\$s'>spam queue</a> at the moment." ), $esc_url($link) ); 
     497        $queue_text = sprintf( __( "There's nothing in your <a href='%1\$s'>spam queue</a> at the moment." ), $link ); 
    502498    } 
    503499 
Note: See TracChangeset for help on using the changeset viewer.