Lines:
1 to 53 of 53
<?php /** * Genesis Framework. * * WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances. * Please do all modifications in the form of a child theme. * * @package Genesis\Updates * @author StudioPress * @license GPL-2.0-or-later * @link https://my.studiopress.com/themes/genesis/ */ /* function genesis_update_check() – Ping https://api.genesistheme.com/ asking if a new version of this theme is available. */ /* function genesis_upgrade_db_latest() – Upgrade the database to latest version. */ add_action( 'admin_init', 'genesis_upgrade', 20 ); /* function genesis_upgrade() – Update Genesis to the latest version. */ add_action( 'wpmu_upgrade_site', 'genesis_network_upgrade_site' ); /* function genesis_network_upgrade_site() – Run silent upgrade on each site in the network during a network upgrade. */ add_action( 'wp_ajax_no_priv_genesis-silent-upgrade', 'genesis_silent_upgrade' ); /* function genesis_silent_upgrade() – Genesis settings upgrade. Silent upgrade (no redirect). */ add_action( 'upgrader_process_complete', 'genesis_update_complete', 10, 2 ); /* function genesis_update_complete() – Upgrade the Genesis database after an update has completed. */ add_filter( 'update_theme_complete_actions', 'genesis_update_action_links', 10, 2 ); /* function genesis_update_action_links() – Filter the action links at the end of an update. */ add_action( 'admin_notices', 'genesis_update_nag' ); /* function genesis_update_nag() – Display the update nag at the top of the dashboard if there is a Genesis update available. */ add_action( 'init', 'genesis_update_email' ); /* function genesis_update_email() – Sends out update notification email. */ add_filter( 'pre_set_site_transient_update_themes', 'genesis_disable_wporg_updates' ); add_filter( 'pre_set_transient_update_themes', 'genesis_disable_wporg_updates' ); /* function genesis_disable_wporg_updates() – Disable WordPress from giving update notifications on Genesis or Genesis child themes. */ add_filter( 'site_transient_update_themes', 'genesis_update_push' ); add_filter( 'transient_update_themes', 'genesis_update_push' ); /* function genesis_update_push() – Integrate the Genesis update check into the WordPress update checks. */ add_action( 'load-update-core.php', 'genesis_clear_update_transient' ); add_action( 'load-themes.php', 'genesis_clear_update_transient' ); /* function genesis_clear_update_transient() – Delete Genesis update transient after updates or when viewing the themes page. */ /* function _genesis_vestige() – Converts array of keys from Genesis options to vestigial options. */