BBP_Admin: network_update_screen ()

更新所有论坛的所有网站

描述

文件:bp-forums / admin / admin.php

Public static function network_update_screen() {global $wpdb;//获取action $action = isset($_GET['action']) ?$ _GET['行动']:”;

< / h2 > < ?php //执行操作开关($action) {case 'bbpress-update': //站点计数器$n = isset($_GET['n']) ?intval($_GET['n']): 0;//一次获取5个博客$blogs = $wpdb->get_results("SELECT * FROM {$wpdb->blogs} WHERE site_id = '{$wpdb-> blogs} ' AND spam = '0' AND deleted = '0' AND archived = '0' ORDER BY registered DESC LIMIT {$n}, 5", ARRAY_A);//没有博客,一切都完成了!If (empty($blogs)): ?全部完成!”、“buddyboss”); ?>

  • 30, 'httpversion' => '1.1' ) ); // Site errored out, no response? if ( is_wp_error( $response ) ) wp_die( sprintf( __( 'Warning! Problem updating %1$s. Your server may not be able to connect to sites running on it. Error message: %2$s', 'buddyboss' ), $siteurl, $response->get_error_message() ) ); // Switch to the new blog switch_to_blog( $details[ 'blog_id' ] ); $basename = bbpress()->basename; // Run the updater on this site if ( is_plugin_active_for_network( $basename ) || is_plugin_active( $basename ) ) { bbp_version_updater(); } // restore original blog restore_current_blog(); // Do some actions to allow plugins to do things too do_action( 'after_bbpress_upgrade', $response ); do_action( 'bbp_upgrade_site', $details[ 'blog_id' ] ); endforeach; ?>

更新日志

更新日志
版本 描述
bbPress (r3689) 介绍了。

问题吗?

我们总是很乐意帮助您解决代码或其他问题!搜索我们的开发人员文档联络支持,或与我们联系销售团队