コード例 #1
0
		<ul>
		<?php 
            foreach ($errors->get_error_messages() as $message) {
                echo "<li>{$message}</li>";
            }
            ?>
		</ul>
	</div>
<?php 
        }
        ?>

<div class="wrap">

	<?php 
        if ($wp_user_search->is_search()) {
            ?>
		<h2><?php 
            printf(__('Users Matching "%s" by Role'), wp_specialchars($wp_user_search->search_term));
            ?>
</h2>
	<?php 
        } else {
            ?>
		<h2><?php 
            _e('User List by Role');
            ?>
</h2>
	<?php 
        }
        ?>
コード例 #2
0
	endif; ?>

<?php if ( is_wp_error( $errors ) ) : ?>
	<div class="error">
		<ul>
		<?php
			foreach ( $errors->get_error_messages() as $message )
				echo "<li>$message</li>";
		?>
		</ul>
	</div>
<?php endif; ?>

<div class="wrap">

	<?php if ( $wp_user_search->is_search() ) : ?>
		<h2><?php printf(__('Users Matching "%s" by Role'), wp_specialchars($wp_user_search->search_term)); ?></h2>
	<?php else : ?>
		<h2><?php _e('User List by Role'); ?></h2>
	<?php endif; ?>

	<form action="" method="get" name="search" id="search">
		<p><input type="text" name="usersearch" id="usersearch" value="<?php echo attribute_escape($wp_user_search->search_term); ?>" /> <input type="submit" value="<?php _e('Search 	users &raquo;'); ?>" class="button" /></p>
	</form>

	<?php if ( is_wp_error( $wp_user_search->search_errors ) ) : ?>
		<div class="error">
			<ul>
			<?php
				foreach ( $wp_user_search->search_errors->get_error_messages() as $message )
					echo "<li>$message</li>";