Changeset 59171 for trunk/src/wp-includes/load.php
- Timestamp:
- 10/04/2024 05:34:50 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/load.php
r58683 r59171 1807 1807 $key = substr( sanitize_key( wp_unslash( $_REQUEST['wp_scrape_key'] ) ), 0, 32 ); 1808 1808 $nonce = wp_unslash( $_REQUEST['wp_scrape_nonce'] ); 1809 1810 if ( get_transient( 'scrape_key_' . $key ) !== $nonce ) { 1809 if ( empty( $key ) || empty( $nonce ) ) { 1810 return; 1811 } 1812 1813 $transient = get_transient( 'scrape_key_' . $key ); 1814 if ( false === $transient ) { 1815 return; 1816 } 1817 1818 if ( $transient !== $nonce ) { 1819 if ( ! headers_sent() ) { 1820 header( 'X-Robots-Tag: noindex' ); 1821 nocache_headers(); 1822 } 1811 1823 echo "###### wp_scraping_result_start:$key ######"; 1812 1824 echo wp_json_encode(
Note: See TracChangeset
for help on using the changeset viewer.