Skip to:
Content

BuddyPress.org

Changeset 9634


Ignore:
Timestamp:
03/23/2015 08:19:35 PM (9 years ago)
Author:
johnjamesjacoby
Message:

XProfile: Add context to single field update/save metabox.

This matches single fields to field-groups and WordPress core.

See #6313.

File:
1 edited

Legend:

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

    r9633 r9634  
    374374    public function render_admin_form( $message = '' ) {
    375375        if ( empty( $this->id ) ) {
    376             $title  = __( 'Add Field', 'buddypress' );
     376            $title  = __( 'Add New Field', 'buddypress' );
    377377            $action = "users.php?page=bp-profile-setup&group_id=" . $this->group_id . "&mode=add_field#tabs-" . $this->group_id;
     378            $button = __( 'Save', 'buddypress' );
    378379
    379380            if ( !empty( $_POST['saveField'] ) ) {
     
    388389            $title  = __( 'Edit Field', 'buddypress' );
    389390            $action = "users.php?page=bp-profile-setup&mode=edit_field&group_id=" . $this->group_id . "&field_id=" . $this->id . "#tabs-" . $this->group_id;
     391            $button = __( 'Update', 'buddypress' );
    390392        } ?>
    391393
     
    456458                                            <input type="hidden" name="field_order" id="field_order" value="<?php echo esc_attr( $this->field_order ); ?>" />
    457459                                            <div id="publishing-action">
    458                                                 <input type="submit" value="<?php esc_attr_e( 'Save', 'buddypress' ); ?>" name="saveField" id="saveField" style="font-weight: bold" class="button-primary" />
     460                                                <input type="submit" name="saveField" value="<?php echo esc_attr( $button ); ?>" class="button-primary" />
    459461                                            </div>
    460462                                            <div id="delete-action">
Note: See TracChangeset for help on using the changeset viewer.