Changeset 13240
- Timestamp:
- 02/20/2010 12:50:29 AM (15 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/formatting.php
r13197 r13240 1209 1209 */ 1210 1210 function addslashes_gpc($gpc) { 1211 global $wpdb; 1212 1213 if (get_magic_quotes_gpc()) { 1211 if ( get_magic_quotes_gpc() ) 1214 1212 $gpc = stripslashes($gpc); 1215 }1216 1213 1217 1214 return esc_sql($gpc); -
trunk/wp-includes/functions.php
r13229 r13240 1443 1443 * Walks the array while sanitizing the contents. 1444 1444 * 1445 * @uses $wpdb Used to sanitize values1446 1445 * @since 0.71 1447 1446 * … … 1450 1449 */ 1451 1450 function add_magic_quotes( $array ) { 1452 global $wpdb;1453 1454 1451 foreach ( (array) $array as $k => $v ) { 1455 1452 if ( is_array( $v ) ) { -
trunk/wp-includes/link-template.php
r13213 r13240 1077 1077 */ 1078 1078 function get_boundary_post($in_same_cat = false, $excluded_categories = '', $start = true) { 1079 global $post , $wpdb;1079 global $post; 1080 1080 1081 1081 if ( empty($post) || !is_single() || is_attachment() ) -
trunk/wp-includes/ms-functions.php
r13209 r13240 1052 1052 1053 1053 function get_user_id_from_string( $string ) { 1054 global $wpdb;1055 1056 1054 $user_id = 0; 1057 1055 if ( is_email( $string ) ) { -
trunk/wp-includes/post.php
r13217 r13240 3931 3931 */ 3932 3932 function clean_attachment_cache($id, $clean_terms = false) { 3933 global $_wp_suspend_cache_invalidation , $wpdb;3933 global $_wp_suspend_cache_invalidation; 3934 3934 3935 3935 if ( !empty($_wp_suspend_cache_invalidation) ) -
trunk/wp-includes/rss.php
r12822 r13240 716 716 \*=======================================================================*/ 717 717 function set ($url, $rss) { 718 global $wpdb;719 718 $cache_option = 'rss_' . $this->file_name( $url ); 720 719
Note: See TracChangeset
for help on using the changeset viewer.