getFileName(); } $aioseop_class_error .= ", preventing All in One SEO Pack from loading."; echo "
" . __( "Updating SEO post meta in database.", 'all_in_one_seo_pack' ) . "
' . __('All in One SEO Pack must be configured.', 'all_in_one_seo_pack' )
. ' ' . sprintf( __('Go to %s to enable and configure the plugin.', 'all_in_one_seo_pack' ), ''
. __('the admin page', 'all_in_one_seo_pack') . '' ) . '
'
. __( 'All in One SEO Pack now supports Custom Post Types and Google Analytics.', 'all_in_one_seo_pack' ) . '
';
die( "jQuery('div#aioseop_" . $target . "_" . $post_id . "').fadeOut('fast', function() {
jQuery('div#aioseop_" . $target . "_" . $post_id . "').html('" . addslashes_gpc($output) . "').fadeIn('fast');
});" );
}
}
if (!function_exists('aioseop_mrt_pccolumn')) {
function aioseop_mrt_pccolumn($aioseopcn, $aioseoppi) {
if( $aioseopcn == 'seotitle' ) {
echo htmlspecialchars(stripcslashes(get_post_meta($aioseoppi,'_aioseop_title',TRUE)));
}
if( $aioseopcn == 'seokeywords' ) {
echo htmlspecialchars(stripcslashes(get_post_meta($aioseoppi,'_aioseop_keywords',TRUE)));
}
if( $aioseopcn == 'seodesc' ) {
echo htmlspecialchars(stripcslashes(get_post_meta($aioseoppi,'_aioseop_description',TRUE)));
}
}
}
if ( !function_exists( 'aioseop_unprotect_meta' ) ) {
function aioseop_unprotect_meta( $protected, $meta_key, $meta_type ) {
if ( isset( $meta_key ) && ( substr( $meta_key, 0, 9 ) === '_aioseop_' ) ) return false;
return $protected;
}
}
if (!function_exists('aioseop_get_pages_start')) {
function aioseop_get_pages_start($excludes) {
global $aioseop_get_pages_start;
$aioseop_get_pages_start = 1;
return $excludes;
}
}
if (!function_exists('aioseop_get_pages')) {
function aioseop_get_pages($pages) {
global $aioseop_get_pages_start;
if (!$aioseop_get_pages_start) return $pages;
foreach ($pages as $k => $v) {
$postID = $v->ID;
$menulabel = stripslashes(get_post_meta($postID, '_aioseop_menulabel', true));
if ($menulabel) $pages[$k]->post_title = $menulabel;
}
$aioseop_get_pages_start = 0;
return $pages;
}
}
// The following two functions are GPLed from Sarah G's Page Menu Editor, http://wordpress.org/extend/plugins/page-menu-editor/.
if (!function_exists('aioseop_list_pages')) {
function aioseop_list_pages( $content ) {
global $wp_version;
$matches = array();
if ( preg_match_all( '/| /> | |