Changeset 5859 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php
- Timestamp:
- 09/03/2017 12:17:22 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php
r5824 r5859 32 32 get_template_directory_uri() . '/style.css', 33 33 array( 'bb-base' ), 34 '20170 821'34 '20170903' 35 35 ); 36 36 … … 249 249 } 250 250 251 $count = (int) $wpdb->get_var( $wpdb->prepare(252 "SELECT COUNT(*)253 FROM {$wpdb->posts}254 WHERE post_type = 'topic'255 AND post_status IN ( 'publish', 'closed' )256 AND post_parent <> %d257 AND post_author = %d",258 WordPressdotorg\Forums\Plugin::REVIEWS_FORUM_ID,259 $user_id260 ) );251 $count = (int) $wpdb->get_var( $wpdb->prepare( 252 "SELECT COUNT(*) 253 FROM {$wpdb->posts} 254 WHERE post_type = 'topic' 255 AND post_status IN ( 'publish', 'closed' ) 256 AND post_parent <> %d 257 AND post_author = %d", 258 WordPressdotorg\Forums\Plugin::REVIEWS_FORUM_ID, 259 $user_id 260 ) ); 261 261 262 262 return $count; … … 283 283 } 284 284 285 $count = (int) $wpdb->get_var( $wpdb->prepare(286 "SELECT COUNT(*)287 FROM {$wpdb->posts}288 WHERE post_type = 'topic'289 AND post_status IN ( 'publish', 'closed' )290 AND post_parent = %d291 AND post_author = %d",292 WordPressdotorg\Forums\Plugin::REVIEWS_FORUM_ID,293 $user_id294 ) );285 $count = (int) $wpdb->get_var( $wpdb->prepare( 286 "SELECT COUNT(*) 287 FROM {$wpdb->posts} 288 WHERE post_type = 'topic' 289 AND post_status IN ( 'publish', 'closed' ) 290 AND post_parent = %d 291 AND post_author = %d", 292 WordPressdotorg\Forums\Plugin::REVIEWS_FORUM_ID, 293 $user_id 294 ) ); 295 295 296 296 return $count;
Note: See TracChangeset
for help on using the changeset viewer.