Пример #1
0
function wpsc_canonical_url()
{
    $wpsc_url = wpsc_change_canonical_url(null);
    if ($wpsc_url != null) {
        remove_action('wp_head', 'rel_canonical');
        add_action('wp_head', 'wpsc_insert_canonical_url');
    }
}
function wpsc_canonical_url()
{
    $wpsc_url = wpsc_change_canonical_url(null);
    if ($wpsc_url != null && (count($aioseop_options) <= 1 || $aioseop_options['aiosp_can'] != '1' && $aioseop_options['aiosp_can'] != 'on')) {
        remove_action('wp_head', 'rel_canonical');
        add_action('wp_head', 'wpsc_insert_canonical_url');
    }
}