Changeset 58975 for trunk/src/wp-includes/ms-functions.php
- Timestamp:
- 09/03/2024 06:17:19 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-functions.php
r57108 r58975 2022 2022 function update_posts_count( $deprecated = '' ) { 2023 2023 global $wpdb; 2024 update_option( 'post_count', (int) $wpdb->get_var( "SELECT COUNT(ID) FROM {$wpdb->posts} WHERE post_status = 'publish' and post_type = 'post'" ) );2024 update_option( 'post_count', (int) $wpdb->get_var( "SELECT COUNT(ID) FROM {$wpdb->posts} WHERE post_status = 'publish' and post_type = 'post'" ), true ); 2025 2025 } 2026 2026
Note: See TracChangeset
for help on using the changeset viewer.