Make WordPress Core

Changeset 24186


Ignore:
Timestamp:
05/07/2013 03:35:34 PM (11 years ago)
Author:
nacin
Message:

Remove the body of the deprecated links_popup_script() as currently it issues a fatal error. see #24210.

File:
1 edited

Legend:

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

    r24128 r24186  
    10881088function links_popup_script($text = 'Links', $width=400, $height=400, $file='links.all.php', $count = true) {
    10891089    _deprecated_function( __FUNCTION__, '2.1' );
    1090 
    1091     if ( $count )
    1092         $counts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->links");
    1093 
    1094     $javascript = "<a href=\"#\" onclick=\"javascript:window.open('$file?popup=1', '_blank', 'width=$width,height=$height,scrollbars=yes,status=no'); return false\">";
    1095     $javascript .= $text;
    1096 
    1097     if ( $count )
    1098         $javascript .= " ($counts)";
    1099 
    1100     $javascript .= "</a>\n\n";
    1101         echo $javascript;
    11021090}
    11031091
Note: See TracChangeset for help on using the changeset viewer.