Remove the body of the deprecated links_popup_script() as currently it issues a fatal error. see #24210.
git-svn-id: https://develop.svn.wordpress.org/trunk@24186 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3edcfbd798
commit
d8d04c84b2
@ -1087,18 +1087,6 @@ function get_links_list($order = 'name') {
|
||||
*/
|
||||
function links_popup_script($text = 'Links', $width=400, $height=400, $file='links.all.php', $count = true) {
|
||||
_deprecated_function( __FUNCTION__, '2.1' );
|
||||
|
||||
if ( $count )
|
||||
$counts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->links");
|
||||
|
||||
$javascript = "<a href=\"#\" onclick=\"javascript:window.open('$file?popup=1', '_blank', 'width=$width,height=$height,scrollbars=yes,status=no'); return false\">";
|
||||
$javascript .= $text;
|
||||
|
||||
if ( $count )
|
||||
$javascript .= " ($counts)";
|
||||
|
||||
$javascript .= "</a>\n\n";
|
||||
echo $javascript;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user