本文整理汇总了PHP中aioseop_mrt_mkarry函数的典型用法代码示例。如果您正苦于以下问题:PHP aioseop_mrt_mkarry函数的具体用法?PHP aioseop_mrt_mkarry怎么用?PHP aioseop_mrt_mkarry使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了aioseop_mrt_mkarry函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: aioseop_update_settings_check
function aioseop_update_settings_check()
{
global $aioseop_options;
if (isset($_POST['aioseop_migrate_options']) || empty($aioseop_options)) {
aioseop_mrt_mkarry();
}
// WPML has now attached to filters, read settings again so they can be translated
aioseop_get_options();
$update_options = false;
if (!empty($aioseop_options)) {
if (!empty($aioseop_options['aiosp_archive_noindex'])) {
// migrate setting for noindex archives
$aioseop_options['aiosp_archive_date_noindex'] = $aioseop_options['aiosp_archive_author_noindex'] = $aioseop_options['aiosp_archive_noindex'];
unset($aioseop_options['aiosp_archive_noindex']);
$update_options = true;
}
if (!empty($aioseop_options['aiosp_archive_title_format']) && empty($aioseop_options['aiosp_date_title_format'])) {
$aioseop_options['aiosp_date_title_format'] = $aioseop_options['aiosp_archive_title_format'];
unset($aioseop_options['aiosp_archive_title_format']);
$update_options = true;
}
if (!empty($aioseop_options['aiosp_archive_title_format']) && $aioseop_options['aiosp_archive_title_format'] == '%date% | %blog_title%') {
$aioseop_options['aiosp_archive_title_format'] = '%archive_title% | %blog_title%';
$update_options = true;
}
if ($update_options) {
update_option('aioseop_options', $aioseop_options);
}
}
}
示例2: aioseop_update_settings_check
function aioseop_update_settings_check()
{
if (isset($_POST['aioseop_migrate'])) {
aioseop_mrt_fix_meta();
}
if (isset($_POST['aioseop_migrate_options']) || !get_option('aiosp_post_title_format') && !get_option('aioseop_options')) {
aioseop_mrt_mkarry();
}
}
示例3: aioseop_update_settings_check
function aioseop_update_settings_check() {
global $aioseop_options;
if ( isset( $_POST['aioseop_migrate'] ) ) aioseop_mrt_fix_meta();
if ( ( isset( $_POST['aioseop_migrate_options'] ) ) ||
( empty( $aioseop_options ) ) ) {
aioseop_mrt_mkarry();
}
// WPML has now attached to filters, read settings again so they can be translated
$aioseop_options = get_option( 'aioseop_options' );
}
示例4: aioseop_update_settings_check
function aioseop_update_settings_check()
{
global $aioseop_options;
if (isset($_POST['aioseop_migrate_options']) || empty($aioseop_options)) {
aioseop_mrt_mkarry();
}
// WPML has now attached to filters, read settings again so they can be translated
$aioseop_options = get_option('aioseop_options');
if (!empty($aioseop_options['aiosp_archive_noindex'])) {
// migrate setting for noindex archives
$aioseop_options['aiosp_archive_date_noindex'] = $aioseop_options['aiosp_archive_author_noindex'] = $aioseop_options['aiosp_archive_noindex'];
unset($aioseop_options['aiosp_archive_noindex']);
update_option('aioseop_options', $aioseop_options);
}
}
示例5: aioseop_mrt_fix_meta
////checking to see if things need to be updated
//if_post('turn-on'){
/* automattic?
if(!get_option('aioseop_options')){
aioseop_mrt_fix_meta(); //move this to the if also
aioseop_mrt_mkarry();
}
*/
if ($_POST['aioseop_migrate']) {
aioseop_mrt_fix_meta();
}
if ($_POST['aioseop_migrate_options']) {
aioseop_mrt_mkarry();
}
if (!get_option('aiosp_post_title_format') && !get_option('aioseop_options')) {
aioseop_mrt_mkarry();
}
//}end _post('turn_on')
////end checking to see if things need to be updated
function aioseop_mrt_fix_meta()
{
global $wpdb;
$wpdb->query("UPDATE {$wpdb->postmeta} SET meta_key = '_aioseop_keywords' WHERE meta_key = 'keywords'");
$wpdb->query("UPDATE {$wpdb->postmeta} SET meta_key = '_aioseop_title' WHERE meta_key = 'title'");
$wpdb->query("UPDATE {$wpdb->postmeta} SET meta_key = '_aioseop_description' WHERE meta_key = 'description'");
$wpdb->query("UPDATE {$wpdb->postmeta} SET meta_key = '_aioseop_meta' WHERE meta_key = 'aiosp_meta'");
$wpdb->query("UPDATE {$wpdb->postmeta} SET meta_key = '_aioseop_disable' WHERE meta_key = 'aiosp_disable'");
echo "<div class='updated fade' style='background-color:green;border-color:green;'><p><strong>Updating SEO post meta in database.</strong></p></div";
}
function aioseop_get_version()
{