Skip to:
Content

BuddyPress.org

Changeset 9193


Ignore:
Timestamp:
11/26/2014 10:19:33 PM (7 years ago)
Author:
djpaul
Message:

Admin: remove duplicated save/new page buttons on the BP Settings > Pages screen.

Removing these buttons simplifies the UI for this screen. We can revisit the "Add Page" button in particular in the future.

Fixes #6044

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/admin/bp-core-slugs.php

    r7965 r9193  
    102102                            ) ); ?>
    103103
    104                             <a href="<?php echo admin_url( add_query_arg( array( 'post_type' => 'page' ), 'post-new.php' ) ); ?>" class="button-secondary"><?php _e( 'New Page', 'buddypress' ); ?></a>
    105                             <input class="button-primary" type="submit" name="bp-admin-pages-single" value="<?php esc_attr_e( 'Save', 'buddypress' ) ?>" />
    106 
    107104                            <?php if ( !empty( $existing_pages[$name] ) ) : ?>
    108105
     
    165162                            ) ) ?>
    166163
    167                             <a href="<?php echo admin_url( add_query_arg( array( 'post_type' => 'page' ), 'post-new.php' ) ); ?>" class="button-secondary"><?php _e( 'New Page', 'buddypress' ); ?></a>
    168                             <input class="button-primary" type="submit" name="bp-admin-pages-single" value="<?php esc_attr_e( 'Save', 'buddypress' ) ?>" />
    169 
    170164                            <?php if ( !empty( $existing_pages[$name] ) ) : ?>
    171165
     
    198192function bp_core_admin_slugs_setup_handler() {
    199193
    200     if ( isset( $_POST['bp-admin-pages-submit'] ) || isset( $_POST['bp-admin-pages-single'] ) ) {
     194    if ( isset( $_POST['bp-admin-pages-submit'] ) ) {
    201195        if ( !check_admin_referer( 'bp-admin-pages-setup' ) )
    202196            return false;
Note: See TracChangeset for help on using the changeset viewer.