/**
 * Update products page URL options when permalink scheme changes.
 *
 * @since  3.8.9
 * @access private
 *
 * @uses wpsc_update_page_urls() Gets the premalinks for product pages and stores for quick reference
 */
function _wpsc_action_permalink_structure_changed()
{
    _wpsc_deprecated_function(__FUNCTION__, '3.8.14');
    add_action('admin_notices', 'wpsc_check_permalink_notice');
    wpsc_update_page_urls(true);
}
Esempio n. 2
0
/**
 * wpsc_update_permalinks update the product pages permalinks when WordPress permalinks are changed
 *
 * @public
 *
 * @3.8
 * @returns nothing
 */
function wpsc_update_permalinks($return = '')
{
    wpsc_update_page_urls(true);
    return $return;
}
Esempio n. 3
0
/**
 * Update products page URL options when permalink scheme changes.
 *
 * @since  3.8.9
 * @access private
 */
function _wpsc_action_permalink_structure_changed()
{
    $wp_version = get_bloginfo('version');
    // see WordPress core trac ticket:
    // http://core.trac.wordpress.org/ticket/16736
    // this has been fixed in WordPress 3.3
    if (version_compare($wp_version, '3.3', '<')) {
        _wpsc_display_permalink_refresh_notice();
    }
    add_action('admin_notices', 'wpsc_check_permalink_notice');
    wpsc_update_page_urls(true);
    return $return;
}