Changeset 4667
- Timestamp:
- 07/16/2011 10:34:49 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/admin/bp-core-admin.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/admin/bp-core-admin.php
r4666 r4667 196 196 global $wpdb, $bp; 197 197 198 if ( isset( $_POST['bp-admin-pages-submit'] ) ) {199 if ( !check_admin_referer( 'bp-admin-pages-setup') )198 if ( isset( $_POST['bp-admin-pages-submit'] ) || isset( $_POST['bp-admin-pages-single'] ) ) { 199 if ( !check_admin_referer( 'bp-admin-pages-setup' ) ) 200 200 return false; 201 201 … … 307 307 308 308 <p class="submit clear"> 309 <input class="button-primary" type="submit" name="bp-admin-page -submit" id="bp-admin-page-submit" value="<?php _e( 'Save All', 'buddypress' ) ?>"/>309 <input class="button-primary" type="submit" name="bp-admin-pages-submit" id="bp-admin-pages-submit" value="<?php _e( 'Save All', 'buddypress' ) ?>"/> 310 310 </p> 311 311 … … 487 487 'forums' => __( 'Discussion Forums', 'buddypress' ), 488 488 ); 489 489 490 490 if ( is_multisite() ) 491 491 $directory_pages['blogs'] = __( "Site Directory", 'buddypress' ); ?> … … 515 515 516 516 <a href="<?php echo admin_url( add_query_arg( array( 'post_type' => 'page' ), 'post-new.php' ) ); ?>" class="button-secondary"><?php _e( 'New Page' ); ?></a> 517 <input class="button-primary" type="submit" value="<?php _e( 'Save', 'buddypress' ) ?>" /> 517 <input class="button-primary" type="submit" name="bp-admin-pages-single" value="<?php _e( 'Save', 'buddypress' ) ?>" /> 518 519 <?php if ( !empty( $existing_pages[$name] ) ) : ?> 520 521 <a href="<?php echo get_permalink( $existing_pages[$name] ); ?>" class="button-secondary" target="_bp"><?php _e( 'View' ); ?></a> 522 523 <?php endif; ?> 524 518 525 </td> 519 526 </tr> … … 558 565 559 566 <a href="<?php echo admin_url( add_query_arg( array( 'post_type' => 'page' ), 'post-new.php' ) ); ?>" class="button-secondary"><?php _e( 'New Page' ); ?></a> 560 <input class="button-primary" type="submit" value="<?php _e( 'Save', 'buddypress' ) ?>" /> 567 <input class="button-primary" type="submit" name="bp-admin-pages-single" value="<?php _e( 'Save', 'buddypress' ) ?>" /> 568 569 <?php if ( !empty( $existing_pages[$name] ) ) : ?> 570 571 <a href="<?php echo get_permalink( $existing_pages[$name] ); ?>" class="button-secondary" target="_bp"><?php _e( 'View' ); ?></a> 572 573 <?php endif; ?> 574 561 575 </td> 562 576 </tr>
Note: See TracChangeset
for help on using the changeset viewer.