Changeset 30068
- Timestamp:
- 10/28/2014 08:42:20 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r30055 r30068 937 937 if ( $output != '' ) { 938 938 return $output; 939 }940 941 // We're trusting author input, so let's at least make sure it looks like a valid orderby statement942 if ( isset( $attr['orderby'] ) ) {943 $attr['orderby'] = sanitize_sql_orderby( $attr['orderby'] );944 if ( ! $attr['orderby'] ) {945 unset( $attr['orderby'] );946 }947 939 } 948 940 … … 1057 1049 $i = 0; 1058 1050 foreach ( $attachments as $id => $attachment ) { 1059 1051 1060 1052 $attr = ( trim( $attachment->post_excerpt ) ) ? array( 'aria-describedby' => "$selector-$id" ) : ''; 1061 1053 if ( ! empty( $atts['link'] ) && 'file' === $atts['link'] ) { … … 1221 1213 } 1222 1214 1223 /*1224 * We're trusting author input, so let's at least make sure it looks1225 * like a valid orderby statement.1226 */1227 if ( isset( $attr['orderby'] ) ) {1228 $attr['orderby'] = sanitize_sql_orderby( $attr['orderby'] );1229 if ( ! $attr['orderby'] )1230 unset( $attr['orderby'] );1231 }1232 1233 1215 $atts = shortcode_atts( array( 1234 1216 'type' => 'audio',
Note: See TracChangeset
for help on using the changeset viewer.