Changeset 12252 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-openverse/index.php
- Timestamp:
- 11/18/2022 01:48:31 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-openverse/index.php
r11217 r12252 15 15 namespace WordPressdotorg\Openverse\Theme; 16 16 17 /* 18 If the theme mod `ov_is_redirect_enabled` is set to `true`, redirect to the 19 standalone site and exit immediately. If not, print what would have been the 20 redirect URL to the HTML as a comment. 21 */ 22 23 $is_redirect_enabled = get_theme_mod( 'ov_is_redirect_enabled' ); 24 $target_url = get_target_url(); 25 26 if ( $is_redirect_enabled ) { 27 wp_redirect( $target_url ); 28 exit; 29 } else { 30 echo "<!-- " . $target_url . " -->"; 31 } 32 17 33 get_header(); 18 34 ?>
Note: See TracChangeset
for help on using the changeset viewer.