Make WordPress Core


Ignore:
Timestamp:
01/29/2010 08:11:20 AM (15 years ago)
Author:
dd32
Message:

Use !empty() for Link searching title.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/link-manager.php

    r12894 r12895  
    4444$title = __('Edit Links');
    4545$this_file = $parent_file = 'link-manager.php';
    46 include_once ("./admin-header.php");
    47 
    48 if (!current_user_can('manage_links'))
     46include_once ('./admin-header.php');
     47
     48if ( ! current_user_can('manage_links') )
    4949    wp_die(__("You do not have sufficient permissions to edit the links for this blog."));
    5050
     
    7474<?php screen_icon(); ?>
    7575<h2><?php echo esc_html( $title ); ?> <a href="link-add.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'link'); ?></a> <?php
    76 if ( isset($_GET['s']) && $_GET['s'] )
     76if ( !empty($_GET['s']) )
    7777    printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( stripslashes($_GET['s']) ) ); ?>
    7878</h2>
Note: See TracChangeset for help on using the changeset viewer.