WordPress.org

Plugin Directory

Changeset 621558


Ignore:
Timestamp:
11/06/12 04:47:47 (18 months ago)
Author:
mdawaffe
Message:

Use get_edit_profile_url() instead of admin_url( 'profile.php' ).

Location:
jetpack/trunk/modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/modules/after-the-deadline.php

    r574213 r621558  
    1515 
    1616function AtD_configuration_load() { 
    17     wp_safe_redirect( admin_url( 'profile.php#atd' ) ); 
     17    wp_safe_redirect( get_edit_profile_url( get_current_user_id() ) . '#atd' ); 
    1818    exit;    
    1919} 
  • jetpack/trunk/modules/post-by-email.php

    r621538 r621558  
    4646 
    4747    function configuration_redirect() { 
    48         wp_safe_redirect( admin_url( 'profile.php#post-by-email' ) ); 
     48        wp_safe_redirect( get_edit_profile_url( get_current_user_id() ) . '#post-by-email' ); 
    4949        exit; 
    5050    } 
     
    127127                    </p> 
    128128                    <p> 
    129                         <a href="<?php echo $jetpack->build_connect_url( false, admin_url( 'profile.php#post-by-email' ) ); ?>" class="button button-connector" id="wpcom-connect"><?php esc_html_e( 'Link account with WordPress.com', 'jetpack' ); ?></a> 
     129                        <a href="<?php echo $jetpack->build_connect_url( false, get_edit_profile_url( get_current_user_id() ) . '#post-by-email' ); ?>" class="button button-connector" id="wpcom-connect"><?php esc_html_e( 'Link account with WordPress.com', 'jetpack' ); ?></a> 
    130130                    </p> 
    131131                    <?php 
Note: See TracChangeset for help on using the changeset viewer.