Changeset 7987
- Timestamp:
- 12/18/2018 02:30:14 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php
r7875 r7987 15 15 add_filter( 'bbp_map_meta_caps', array( $this, 'disallow_editing_past_lock_time' ), 10, 4 ); 16 16 add_filter( 'redirect_canonical', array( $this, 'disable_redirect_guess_404_permalink' ) ); 17 add_action( 'template_redirect', array( $this, 'redirect_update_php_page' ) ); 17 18 add_filter( 'wp_insert_post_data', array( $this, 'set_post_date_gmt_for_pending_posts' ) ); 18 19 add_action( 'wp_print_footer_scripts', array( $this, 'replace_quicktags_blockquote_button' ) ); … … 181 182 182 183 return $redirect_url; 184 } 185 186 /** 187 * Redirect "Update PHP" page from the old slug to the new one. 188 * 189 * The old slug is 'upgrade-php', the new one is 'update-php'. 190 */ 191 public function redirect_update_php_page() { 192 if ( is_404() && 'upgrade-php' === get_query_var( 'pagename' ) ) { 193 wp_redirect( home_url( '/update-php/' ), 301 ); 194 exit; 195 } 183 196 } 184 197
Note: See TracChangeset
for help on using the changeset viewer.