Changeset 47887 for trunk/src/wp-includes/class-wp.php
- Timestamp:
- 06/02/2020 08:10:02 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp.php
r47855 r47887 405 405 if ( is_user_logged_in() ) { 406 406 $headers = array_merge( $headers, wp_get_nocache_headers() ); 407 } elseif ( ! empty( $_GET['unapproved'] ) && ! empty( $_GET['moderation-hash'] ) ) { 408 // Unmoderated comments are only visible for one minute via the moderation hash. 409 $headers['Expires'] = gmdate( 'D, d M Y H:i:s', time() + MINUTE_IN_SECONDS ); 410 $headers['Cache-Control'] = 'max-age=60, must-revalidate'; 407 411 } 408 412 if ( ! empty( $this->query_vars['error'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.