BBP_Admin::update_screen()
Update all forums across all sites
Description
Source
File: bp-forums/admin/admin.php
public static function update_screen() { // Get action $action = isset( $_GET['action'] ) ? $_GET['action'] : ''; ?> <div class="wrap"> <div id="icon-edit" class="icon32 icon32-posts-topic"><br /></div> <h2><?php esc_html_e( 'Update Forum', 'buddyboss' ); ?></h2> <?php // Taking action switch ( $action ) { case 'bbp-update' : // Run the full updater bbp_version_updater(); ?> <p><?php esc_html_e( 'All done!', 'buddyboss' ); ?></p> <a class="button" href="index.php?page=bbp-update"><?php esc_html_e( 'Go Back', 'buddyboss' ); ?></a> <?php break; case 'show' : default : ?> <p><?php esc_html_e( 'You can update your forum through this page. Hit the link below to update.', 'buddyboss' ); ?></p> <p><a class="button" href="index.php?page=bbp-update&action=bbp-update"><?php esc_html_e( 'Update Forum', 'buddyboss' ); ?></a></p> <?php break; } ?> </div><?php }
Changelog
Version | Description |
---|---|
bbPress (r3689) | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.