本文整理匯總了PHP中populate_roles_280函數的典型用法代碼示例。如果您正苦於以下問題:PHP populate_roles_280函數的具體用法?PHP populate_roles_280怎麽用?PHP populate_roles_280使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了populate_roles_280函數的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: populate_roles
/**
* Execute WordPress role creation for the various WordPress versions.
*
* @since 2.0.0
*/
function populate_roles()
{
populate_roles_160();
populate_roles_210();
populate_roles_230();
populate_roles_250();
populate_roles_260();
populate_roles_270();
populate_roles_280();
populate_roles_300();
}
示例2: upgrade_280
/**
* Execute changes made in WordPress 2.8.
*
* @since 2.8.0
*/
function upgrade_280()
{
global $wp_current_db_version;
if ($wp_current_db_version < 10360) {
populate_roles_280();
}
if ($wp_current_db_version < 11549) {
$wpmu_sitewide_plugins = get_site_option('wpmu_sitewide_plugins');
$active_sitewide_plugins = get_site_option('active_sitewide_plugins');
if ($wpmu_sitewide_plugins) {
if (!$active_sitewide_plugins) {
$sitewide_plugins = (array) $wpmu_sitewide_plugins;
} else {
$sitewide_plugins = array_merge((array) $active_sitewide_plugins, (array) $wpmu_sitewide_plugins);
}
update_site_option('active_sitewide_plugins', $sitewide_plugins);
}
update_site_option('wpmu_sitewide_plugins', '');
update_site_option('deactivated_sitewide_plugins', '');
}
}
示例3: upgrade_280
/**
* Execute changes made in WordPress 2.8.
*
* @since 2.8.0
*/
function upgrade_280()
{
global $wp_current_db_version, $wpdb;
if ($wp_current_db_version < 10360) {
populate_roles_280();
}
if (is_multisite()) {
$start = 0;
while ($rows = $wpdb->get_results("SELECT option_name, option_value FROM {$wpdb->options} ORDER BY option_id LIMIT {$start}, 20")) {
foreach ($rows as $row) {
$value = $row->option_value;
if (!@unserialize($value)) {
$value = stripslashes($value);
}
if ($value !== $row->option_value) {
update_option($row->option_name, $value);
}
}
$start += 20;
}
refresh_blog_details($wpdb->blogid);
}
}
示例4: upgrade_280
/**
* Execute changes made in WordPress 2.8.
*
* @since 2.8.0
*/
function upgrade_280() {
global $wp_current_db_version;
if ( $wp_current_db_version < 10360 )
populate_roles_280();
}