WordPress.org

Plugin Directory

Changeset 609884


Ignore:
Timestamp:
10/09/12 06:29:14 (19 months ago)
Author:
picklewagon
Message:

only output the html if there is something to output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • new-user-approve/trunk/new-user-approve.php

    r609881 r609884  
    449449            $welcome = apply_filters( 'new_user_approve_welcome_message', $welcome ); 
    450450             
    451             $message .= '<p class="message">' . $welcome . '</p>'; 
     451            if ( ! empty( $welcome ) ) { 
     452                $message .= '<p class="message">' . $welcome . '</p>'; 
     453            } 
    452454        } 
    453455 
     
    456458            $instructions = apply_filters( 'new_user_approve_register_instructions', $instructions ); 
    457459             
    458             $message .= '<p class="message">' . $instructions . '</p>'; 
     460            if ( ! empty( $instructions ) ) { 
     461                $message .= '<p class="message">' . $instructions . '</p>'; 
     462            } 
    459463        } 
    460464 
Note: See TracChangeset for help on using the changeset viewer.