Validation fixes. props ocean90, fixes #15287.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17129 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f80939fdc2
commit
b0be8cd9f4
|
@ -237,8 +237,8 @@ if ( isset($_REQUEST['approved']) || isset($_REQUEST['deleted']) || isset($_REQU
|
|||
<?php } ?>
|
||||
|
||||
<?php $wp_list_table->display(); ?>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id="ajax-response"></div>
|
||||
|
||||
|
|
|
@ -217,7 +217,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
|||
|
||||
if ( 'search' != $type ) {
|
||||
$status_links[$type] = sprintf( "<a href='%s' %s>%s</a>",
|
||||
add_query_arg('theme_status', $type, $url),
|
||||
esc_url( add_query_arg('theme_status', $type, $url) ),
|
||||
( $type == $status ) ? ' class="current"' : '',
|
||||
sprintf( $text, number_format_i18n( $count ) )
|
||||
);
|
||||
|
@ -293,7 +293,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
|||
$actions = apply_filters( "theme_action_links_$theme_key", $actions, $theme_key, $theme, $context );
|
||||
|
||||
$class = empty( $theme['enabled'] ) ? 'inactive' : 'active';
|
||||
$checkbox_id = md5($theme['Name']) . "_checkbox";
|
||||
$checkbox_id = "checkbox_" . md5($theme['Name']);
|
||||
$checkbox = "<input type='checkbox' name='checked[]' value='" . esc_attr( $theme_key ) . "' id='" . $checkbox_id . "' /><label class='screen-reader-text' for='" . $checkbox_id . "' >" . __('Select') . " " . $theme['Name'] . "</label>";
|
||||
|
||||
$description = '<p>' . $theme['Description'] . '</p>';
|
||||
|
@ -325,14 +325,13 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
|||
<div class='$class second theme-version-author-uri'>";
|
||||
|
||||
$theme_meta = array();
|
||||
|
||||
if ( !empty( $theme['Version'] ) )
|
||||
$theme_meta[] = sprintf( __( 'Version %s' ), $theme['Version'] );
|
||||
if ( !empty( $theme['Author'] ) ) {
|
||||
$author = $theme['Author'];
|
||||
if ( !empty( $theme['Author URI'] ) )
|
||||
$author = '<a href="' . $theme['Author URI'] . '" title="' . esc_attr__( 'Visit author homepage' ) . '">' . $theme['Author'] . '</a>';
|
||||
$theme_meta[] = sprintf( __( 'By %s' ), $author );
|
||||
}
|
||||
|
||||
if ( !empty( $theme['Author'] ) )
|
||||
$theme_meta[] = sprintf( __( 'By %s' ), $theme['Author'] );
|
||||
|
||||
if ( !empty( $theme['Theme URI'] ) )
|
||||
$theme_meta[] = '<a href="' . $theme['Theme URI'] . '" title="' . esc_attr__( 'Visit theme homepage' ) . '">' . __( 'Visit Theme Site' ) . '</a>';
|
||||
|
||||
|
|
|
@ -384,7 +384,7 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
|||
$actions = apply_filters( $prefix . "plugin_action_links_$plugin_file", $actions, $plugin_file, $plugin_data, $context );
|
||||
|
||||
$class = $is_active ? 'active' : 'inactive';
|
||||
$checkbox_id = md5($plugin_data['Name']) . "_checkbox";
|
||||
$checkbox_id = "checkbox_" . md5($plugin_data['Name']);
|
||||
$checkbox = in_array( $status, array( 'mustuse', 'dropins' ) ) ? '' : "<input type='checkbox' name='checked[]' value='" . esc_attr( $plugin_file ) . "' id='" . $checkbox_id . "' /><label class='screen-reader-text' for='" . $checkbox_id . "' >" . __('Select') . " " . $plugin_data['Name'] . "</label>";
|
||||
if ( 'dropins' != $context ) {
|
||||
$description = '<p>' . ( $plugin_data['Description'] ? $plugin_data['Description'] : ' ' ) . '</p>';
|
||||
|
|
|
@ -442,14 +442,14 @@ function wp_network_dashboard_right_now() {
|
|||
<form name="searchform" action="<?php echo network_admin_url('users.php'); ?>" method="get">
|
||||
<p>
|
||||
<input type="text" name="s" value="" size="17" />
|
||||
<?php submit_button( __( 'Search Users' ), 'button', 'submit', false ); ?>
|
||||
<?php submit_button( __( 'Search Users' ), 'button', 'submit', false, array( 'id' => 'submit_users' ) ); ?>
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<form name="searchform" action="<?php echo network_admin_url('sites.php'); ?>" method="get">
|
||||
<p>
|
||||
<input type="text" name="s" value="" size="17" />
|
||||
<?php submit_button( __( 'Search Sites' ), 'button', 'submit', false ); ?>
|
||||
<?php submit_button( __( 'Search Sites' ), 'button', 'submit', false, array( 'id' => 'submit_sites' ) ); ?>
|
||||
</p>
|
||||
</form>
|
||||
<?php
|
||||
|
|
|
@ -213,10 +213,8 @@ if ( !empty($message) ) { ?>
|
|||
<div id="ajax-response"></div>
|
||||
<?php find_posts_div(); ?>
|
||||
<br class="clear" />
|
||||
</div>
|
||||
</form>
|
||||
<br class="clear" />
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
|
Loading…
Reference in New Issue