diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 0b9549733..9346ece14 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -216,11 +216,11 @@ function wp_dashboard_dynamic_sidebar_params( $params ) { $wp_registered_widgets[$widget_id]['callback'] = 'wp_dashboard_empty'; $sidebar_widget_name = $wp_registered_widget_controls[$widget_id]['name']; $params[1] = 'wp_dashboard_trigger_widget_control'; - $sidebar_before_widget .= '
'; + $sidebar_before_widget .= ''; $sidebar_after_widget = "
$sidebar_after_widget"; - $links[] = '' . __( 'Cancel' ) . ''; + $links[] = '' . __( 'Cancel' ) . ''; } else { - $links[] = '' . __( 'Edit' ) . ''; + $links[] = '' . __( 'Edit' ) . ''; } } diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 1a5da5e06..7ec57c1bc 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -966,7 +966,7 @@ if ( empty($_GET['post_mime_type']) && !empty($num_posts[$type]) ) { } if ( empty($_GET['post_mime_type']) || $_GET['post_mime_type'] == 'all' ) $class = ' class="current"'; -$type_links[] = "
  • 'all', 'paged'=>false, 'm'=>false)) . "'$class>".__('All Types').""; +$type_links[] = "
  • 'all', 'paged'=>false, 'm'=>false))) . "'$class>".__('All Types').""; foreach ( $post_mime_types as $mime_type => $label ) { $class = ''; @@ -976,7 +976,7 @@ foreach ( $post_mime_types as $mime_type => $label ) { if ( wp_match_mime_types($mime_type, $_GET['post_mime_type']) ) $class = ' class="current"'; - $type_links[] = "
  • $mime_type, 'paged'=>false)) . "'$class>" . sprintf(__ngettext($label[2][0], $label[2][1], $num_posts[$mime_type]), "" . number_format_i18n( $num_posts[$mime_type] ) . '') . ''; + $type_links[] = "
  • $mime_type, 'paged'=>false))) . "'$class>" . sprintf(__ngettext($label[2][0], $label[2][1], $num_posts[$mime_type]), "" . number_format_i18n( $num_posts[$mime_type] ) . '') . ''; } echo implode(' |
  • ', $type_links) . ''; unset($type_links); diff --git a/wp-admin/includes/widgets.php b/wp-admin/includes/widgets.php index 297e2b583..09936b729 100644 --- a/wp-admin/includes/widgets.php +++ b/wp-admin/includes/widgets.php @@ -76,7 +76,7 @@ function wp_list_widgets( $show = 'all', $_search = false ) { } $add_query['add'] = $widget['id']; $action = 'add'; - $add_url = wp_nonce_url( add_query_arg( $add_query ), "add-widget_$widget[id]" ); + $add_url = clean_url( wp_nonce_url( add_query_arg( $add_query ), "add-widget_$widget[id]" ) ); } else { $action = 'edit'; $edit_url = clean_url( add_query_arg( array( @@ -232,7 +232,7 @@ function wp_widget_control( $sidebar_args ) { - +