1 | |
---|
2 | <!-- saved from url=(0047)http://xlino.com/class-wp-media-list-table.diff --> |
---|
3 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">Index: class-wp-media-list-table.php |
---|
4 | =================================================================== |
---|
5 | --- class-wp-media-list-table.php (revision 30041) |
---|
6 | +++ class-wp-media-list-table.php (working copy) |
---|
7 | @@ -70,7 +70,7 @@ |
---|
8 | if ( !empty( $_GET['attachment-filter'] ) && strpos( $_GET['attachment-filter'], 'post_mime_type:' ) === 0 && wp_match_mime_types( $mime_type, str_replace( 'post_mime_type:', '', $_GET['attachment-filter'] ) ) ) |
---|
9 | $selected = ' selected="selected"'; |
---|
10 | if ( !empty( $num_posts[$mime_type] ) ) |
---|
11 | - $type_links[$mime_type] = '<option value="post_mime_type:' . urlencode( $mime_type ) . '"' . $selected . '>' . sprintf( translate_nooped_plural( $label[2], $num_posts[$mime_type] ), number_format_i18n( $num_posts[$mime_type] )) . '</option>'; |
---|
12 | + $type_links[$mime_type] = '<option value="post_mime_type:' . esc_attr( $mime_type ) . '"' . $selected . '>' . sprintf( translate_nooped_plural( $label[2], $num_posts[$mime_type] ), number_format_i18n( $num_posts[$mime_type] )) . '</option>'; |
---|
13 | } |
---|
14 | $type_links['detached'] = '<option value="detached"' . ( $this->detached ? ' selected="selected"' : '' ) . '>' . sprintf( _nx( 'Unattached (%s)', 'Unattached (%s)', $total_orphans, 'detached files' ), number_format_i18n( $total_orphans ) ) . '</option>'; |
---|
15 | |
---|
16 | </pre></body></html> |
---|