/** * tarski_resave_navbar() - Re-saves Tarski's navbar order whenever a page is edited. * * This means that if the page order changes, the navbar order will change too. * @deprecated 2.0.5 * @since 1.7 * @see tarski_get_pages() */ function tarski_resave_navbar() { _deprecated_function(__FUNCTION__, '2.0.5'); if (get_option('tarski_options')) { $pages = get_pages(); $selected = explode(',', get_tarski_option('nav_pages')); if ($pages && $selected) { $nav_pages = array(); foreach ($pages as $key => $page) { foreach ($selected as $sel_page) { if ($page->ID == $sel_page) { $nav_pages[$key] = $page->ID; } } } $condensed = implode(',', $nav_pages); update_tarski_option('nav_pages', $condensed); } } }
/** * tarski_resave_show_authors() - Re-saves Tarski's 'show_authors' option. * * If more than one author is detected, it will turn the 'show_authors' * option on; otherwise it will turn it off. * @since 2.0.3 * @uses tarski_should_show_authors() */ function tarski_resave_show_authors() { if (get_option('tarski_options')) { update_tarski_option('show_authors', tarski_should_show_authors()); } }