Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/16/2011 08:04:58 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Add 'New Page' button to Component admin area.

File:
1 edited

Legend:

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

    r4640 r4660  
    392392                            'show_option_none' => __( '- None -', 'buddypress' ),
    393393                            'selected'         => !empty( $existing_pages[$name] ) ? $existing_pages[$name] : false
    394                         ) ) ?>
     394                        ) ); ?>
     395
     396                        <a href="<?php echo site_url( add_query_arg( array( 'post_type' => 'page' ), 'post-new.php' ) ); ?>" class="button-secondary"><?php _e( 'New Page' ); ?></a>
     397
    395398                    </td>
    396399                </tr>
     
    433436                            'selected'         => !empty( $existing_pages[$name] ) ? $existing_pages[$name] : false
    434437                        ) ) ?>
     438
     439                        <a href="<?php echo site_url( add_query_arg( array( 'post_type' => 'page' ), 'post-new.php' ) ); ?>" class="button-secondary"><?php _e( 'New Page' ); ?></a>
     440
    435441                    </td>
    436442                </tr>
Note: See TracChangeset for help on using the changeset viewer.