Changeset 28958 for trunk/src/wp-includes/canonical.php
- Timestamp:
- 07/02/2014 02:10:07 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/canonical.php
r28928 r28958 40 40 global $wp_rewrite, $is_IIS, $wp_query, $wpdb; 41 41 42 if ( isset( $_SERVER['REQUEST_METHOD'] ) && 'GET' !== $_SERVER['REQUEST_METHOD'] ) { 43 return; 44 } 45 42 46 // If we're not in wp-admin and the post has been published and preview nonce 43 47 // is non-existent or invalid then no need for preview in query … … 50 54 } 51 55 52 if ( is_trackback() || is_search() || is_comments_popup() || is_admin() || !empty($_POST) || is_preview() || is_robots() || ( $is_IIS && !iis7_supports_permalinks() ) )56 if ( is_trackback() || is_search() || is_comments_popup() || is_admin() || is_preview() || is_robots() || ( $is_IIS && !iis7_supports_permalinks() ) ) { 53 57 return; 58 } 54 59 55 60 if ( !$requested_url ) {
Note: See TracChangeset
for help on using the changeset viewer.