Make WordPress Core

Ticket #30123: class-wp-media-list-table.diff.txt

File class-wp-media-list-table.diff.txt, 1.6 KB (added by birgire, 10 years ago)
Line 
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'] ) &amp;&amp; strpos( $_GET['attachment-filter'], 'post_mime_type:' ) === 0 &amp;&amp; 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] = '&lt;option value="post_mime_type:' . urlencode( $mime_type ) . '"' . $selected . '&gt;' . sprintf( translate_nooped_plural( $label[2], $num_posts[$mime_type] ), number_format_i18n( $num_posts[$mime_type] )) . '&lt;/option&gt;';
12+                               $type_links[$mime_type] = '&lt;option value="post_mime_type:' . esc_attr( $mime_type ) . '"' . $selected . '&gt;' . sprintf( translate_nooped_plural( $label[2], $num_posts[$mime_type] ), number_format_i18n( $num_posts[$mime_type] )) . '&lt;/option&gt;';
13                }
14                $type_links['detached'] = '&lt;option value="detached"' . ( $this-&gt;detached ? ' selected="selected"' : '' ) . '&gt;' . sprintf( _nx( 'Unattached (%s)', 'Unattached (%s)', $total_orphans, 'detached files' ), number_format_i18n( $total_orphans ) ) . '&lt;/option&gt;';
15 
16</pre></body></html>