Changeset 47917 for branches/5.2/src/wp-includes/class-wp.php
- Timestamp:
- 06/06/2020 09:58:55 AM (5 years ago)
- Location:
- branches/5.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.2
- Property svn:mergeinfo changed
/trunk merged: 47887,47889
- Property svn:mergeinfo changed
-
branches/5.2/src/wp-includes/class-wp.php
r46479 r47917 404 404 if ( is_user_logged_in() ) { 405 405 $headers = array_merge( $headers, wp_get_nocache_headers() ); 406 } elseif ( ! empty( $_GET['unapproved'] ) && ! empty( $_GET['moderation-hash'] ) ) { 407 // Unmoderated comments are only visible for one minute via the moderation hash. 408 $headers['Expires'] = gmdate( 'D, d M Y H:i:s', time() + MINUTE_IN_SECONDS ); 409 $headers['Cache-Control'] = 'max-age=60, must-revalidate'; 406 410 } 407 411 if ( ! empty( $this->query_vars['error'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.