Ejemplo n.º 1
0
/**
 * Post Domain Copy Steps
 *
 * @TODO make this an action
 *
 * @param $settings array
 */
function tc_post_copy_steps($settings)
{
    tc_update_base_url($settings);
    tc_clear_resgistry_cache();
}
Ejemplo n.º 2
0
function themeoptions_update()
{
    // Other Options
    update_option('case_studies_per_page', $_POST['case_studies_per_page']);
    update_option('forumPostPerPage', $_POST['forumPostPerPage']);
    // blog
    update_option('blog_page_title', $_POST['blog_page_title']);
    // Social Media
    update_option('facebookURL', $_POST['facebookURL']);
    update_option('twitterURL', $_POST['twitterURL']);
    update_option('linkedInURL', $_POST['linkedInURL']);
    update_option('gPlusURL', $_POST['gPlusURL']);
    // Twitter OAuth Tokens
    update_option('twConsumerKey', $_POST['twConsumerKey']);
    update_option('twConsumerSecret', $_POST['twConsumerSecret']);
    update_option('twAccessToken', $_POST['twAccessToken']);
    update_option('twAccessTokenSecret', $_POST['twAccessTokenSecret']);
    // Challenges Page
    update_option('tcoTooltipTitle', $_POST['tcoTooltipTitle']);
    update_option('tcoTooltipMessage', $_POST['tcoTooltipMessage']);
    if ($_POST['jssCssReset'] === "1") {
        locate_template("lib/post_copy.php", TRUE);
        tc_clear_resgistry_cache();
    }
    if ($_POST['postCopy'] === "1") {
        locate_template("lib/post_copy.php", TRUE);
        tc_post_copy_steps(array('new_url' => $_POST['newURL']));
    }
}