Changeset 14546
- Timestamp:
- 05/10/2010 08:41:14 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin.php
r14545 r14546 335 335 if ( isset( $_dropins[ $file ] ) ) 336 336 $plugin_files[] = $file; 337 337 } 338 338 } else { 339 339 return $dropins; … … 346 346 347 347 foreach ( $plugin_files as $plugin_file ) { 348 349 350 351 if ( empty( $plugin_data['Name'] ) )352 353 348 if ( !is_readable( WP_CONTENT_DIR . "/$plugin_file" ) ) 349 continue; 350 $plugin_data = get_plugin_data( WP_CONTENT_DIR . "/$plugin_file", false, false ); //Do not apply markup/translate as it'll be cached. 351 if ( empty( $plugin_data['Name'] ) ) 352 $plugin_data['Name'] = $plugin_file; 353 $dropins[ $plugin_file ] = $plugin_data; 354 354 } 355 355 -
trunk/wp-includes/meta.php
r14308 r14546 22 22 * @param string $meta_type Type of object metadata is for (e.g., comment, post, or user) 23 23 * @param int $object_id ID of the object metadata is for 24 * @param string $meta_key Metadata key 24 * @param string $meta_key Metadata key. Expected unslashed. 25 25 * @param string $meta_value Metadata value 26 26 * @param bool $unique Optional, default is false. Whether the specified metadata key should be … … 43 43 $column = esc_sql($meta_type . '_id'); 44 44 45 // expected_slashed ($meta_key)46 $meta_key = stripslashes($meta_key);47 48 45 if ( $unique && $wpdb->get_var( $wpdb->prepare( 49 46 "SELECT COUNT(*) FROM $table WHERE meta_key = %s AND $column = %d", … … 83 80 * @param string $meta_type Type of object metadata is for (e.g., comment, post, or user) 84 81 * @param int $object_id ID of the object metadata is for 85 * @param string $meta_key Metadata key 82 * @param string $meta_key Metadata key. Expected unslashed. 86 83 * @param string $meta_value Metadata value 87 84 * @param string $prev_value Optional. If specified, only update existing metadata entries with … … 103 100 $column = esc_sql($meta_type . '_id'); 104 101 $id_column = 'user' == $meta_type ? 'umeta_id' : 'meta_id'; 105 106 // expected_slashed ($meta_key)107 $meta_key = stripslashes($meta_key);108 102 109 103 if ( ! $meta_id = $wpdb->get_var( $wpdb->prepare( "SELECT $id_column FROM $table WHERE meta_key = %s AND $column = %d", $meta_key, $object_id ) ) ) … … 144 138 * @param string $meta_type Type of object metadata is for (e.g., comment, post, or user) 145 139 * @param int $object_id ID of the object metadata is for 146 * @param string $meta_key Metadata key 140 * @param string $meta_key Metadata key. Expected unslashed. 147 141 * @param string $meta_value Optional. Metadata value. If specified, only delete metadata entries 148 142 * with this value. Otherwise, delete all entries with the specified meta_key. … … 166 160 $type_column = esc_sql($meta_type . '_id'); 167 161 $id_column = 'user' == $meta_type ? 'umeta_id' : 'meta_id'; 168 // expected_slashed ($meta_key) 169 $meta_key = stripslashes($meta_key); 162 170 163 $meta_value = maybe_serialize( stripslashes_deep($meta_value) ); 171 164
Note: See TracChangeset
for help on using the changeset viewer.