WordPress.org

Make WordPress Core

Ticket #9789: don't.show.empty.div.patch

File don't.show.empty.div.patch, 740 bytes (added by Simek, 6 years ago)
  • edit-link-categories.php

     
    6666        printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', wp_specialchars( stripslashes($_GET['s']) ) ); ?> 
    6767</h2> 
    6868 
    69 <?php if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?> 
     69<?php if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) && $msg >= 1 && $msg <= 6 ) : ?> 
    7070<div id="message" class="updated fade"><p><?php echo $messages[$msg]; ?></p></div> 
    7171<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']); 
    7272endif; ?>