Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/11/2013 05:28:38 PM (12 years ago)
Author:
johnjamesjacoby
Message:

In XProfile admin, replace admin.php links with users.php. Fixes regression from 1.6 when profile fields were moved out of Settings and into Users, causing the "Profile Fields" menu item to not appear currently selected. See #5094.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-classes.php

    r7265 r7271  
    353353        if ( empty( $this->id ) ) {
    354354            $title  = __( 'Add New Field Group', 'buddypress' );
    355             $action = "admin.php?page=bp-profile-setup&mode=add_group";
     355            $action = "users.php?page=bp-profile-setup&mode=add_group";
    356356            $button = __( 'Create Field Group', 'buddypress' );
    357357        } else {
    358358            $title  = __( 'Edit Field Group', 'buddypress' );
    359             $action = "admin.php?page=bp-profile-setup&mode=edit_group&group_id=" . $this->id;
     359            $action = "users.php?page=bp-profile-setup&mode=edit_group&group_id=" . $this->id;
    360360            $button = __( 'Save Changes', 'buddypress' );
    361361        } ?>
     
    404404                                            <div id="major-publishing-actions">
    405405                                                <div id="delete-action">
    406                                                     <a href="admin.php?page=bp-profile-setup" class="submitdelete deletion"><?php _e( 'Cancel', 'buddypress' ); ?></a>
     406                                                    <a href="users.php?page=bp-profile-setup" class="submitdelete deletion"><?php _e( 'Cancel', 'buddypress' ); ?></a>
    407407                                                </div>
    408408                                                <div id="publishing-action">
     
    785785                            <input type="<?php echo $default_input; ?>" name="isDefault_<?php echo esc_attr( $type ); ?>_option<?php echo esc_attr( $default_name ); ?>" <?php checked( (int) $options[$i]->is_default_option, true ); ?> value="<?php echo esc_attr( $j ); ?>" />
    786786                            <span><?php _e( 'Default Value', 'buddypress' ); ?></span>
    787                             <a href="<?php echo esc_url( 'admin.php?page=bp-profile-setup&amp;mode=delete_option&amp;option_id=' . $options[$i]->id ); ?>" class="ajax-option-delete" id="delete-<?php echo esc_attr( $options[$i]->id ); ?>">[x]</a>
     787                            <a href="<?php echo esc_url( 'users.php?page=bp-profile-setup&amp;mode=delete_option&amp;option_id=' . $options[$i]->id ); ?>" class="ajax-option-delete" id="delete-<?php echo esc_attr( $options[$i]->id ); ?>">[x]</a>
    788788                        </p>
    789789
     
    817817        if ( empty( $this->id ) ) {
    818818            $title  = __( 'Add Field', 'buddypress' );
    819             $action = "admin.php?page=bp-profile-setup&amp;group_id=" . $this->group_id . "&amp;mode=add_field#tabs-" . $this->group_id;
     819            $action = "users.php?page=bp-profile-setup&amp;group_id=" . $this->group_id . "&amp;mode=add_field#tabs-" . $this->group_id;
    820820
    821821            if ( !empty( $_POST['saveField'] ) ) {
     
    829829        } else {
    830830            $title  = __( 'Edit Field', 'buddypress' );
    831             $action = "admin.php?page=bp-profile-setup&amp;mode=edit_field&amp;group_id=" . $this->group_id . "&amp;field_id=" . $this->id . "#tabs-" . $this->group_id;
     831            $action = "users.php?page=bp-profile-setup&amp;mode=edit_field&amp;group_id=" . $this->group_id . "&amp;field_id=" . $this->id . "#tabs-" . $this->group_id;
    832832        } ?>
    833833
     
    926926                        <input type="hidden" name="field_order" id="field_order" value="<?php echo esc_attr( $this->field_order ); ?>" />
    927927                        <input type="submit" value="<?php _e( 'Save', 'buddypress' ); ?>" name="saveField" id="saveField" style="font-weight: bold" class="button-primary" />
    928                         <?php _e( 'or', 'buddypress' ); ?> <a href="admin.php?page=bp-profile-setup" class="deletion"><?php _e( 'Cancel', 'buddypress' ); ?></a>
     928                        <?php _e( 'or', 'buddypress' ); ?> <a href="users.php?page=bp-profile-setup" class="deletion"><?php _e( 'Cancel', 'buddypress' ); ?></a>
    929929                    </p>
    930930
Note: See TracChangeset for help on using the changeset viewer.