WordPress.org

Make WordPress Core

Ticket #9634: logoutlink-filter.patch

File logoutlink-filter.patch, 347 bytes (added by nicolagreco, 5 years ago)
  • .

     
    280280        if ( isset( $_REQUEST['redirect_to'] ) ) 
    281281                $redirect_to = $_REQUEST['redirect_to']; 
    282282 
     283        $redirect_to = apply_filters( 'wp_logout_link', $redirect_to ); 
     284 
     285 
    283286        wp_safe_redirect($redirect_to); 
    284287        exit(); 
    285288