Changeset 12042
- Timestamp:
- 09/02/2022 05:01:33 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/functions.php
r11973 r12042 40 40 add_filter( 'document_title_parts', array( $this, 'document_title_parts' ) ); 41 41 42 add_filter( 'template_redirect', array( $this, 'redirects' ) );42 add_filter( 'template_redirect', array( $this, 'redirects' ), 1 ); 43 43 44 44 register_nav_menus( array( … … 145 145 $url = str_replace( '/social-learning', '/learn-wordpress-online-workshops', $_SERVER['REQUEST_URI'] ); 146 146 wp_safe_redirect( $url, 301 ); 147 die(); 148 } 149 150 // Redirect /upload to submit-video 151 if ( 'upload' === trim( $_SERVER['REQUEST_URI'], '/' ) ) { 152 wp_safe_redirect( '/submit-video/', 301 ); 147 153 die(); 148 154 }
Note: See TracChangeset
for help on using the changeset viewer.