' . sprintf( __( '%1$s requires the %2$s plugin to function correctly. Unable to activate at this time.', 'atf-locks' ), '' . esc_html( 'Advanced Term Fields: Locks' ) . '', '' . esc_html( 'Advanced Term Fields' ) . '' ) . '

'; if ( isset( $_GET['activate'] ) ) { unset( $_GET['activate'] ); } } /** * Displays upgrade notice * * @since 0.1.0 * * @param bool $updated True|False flag for option being updated. * @param string $db_version_key The database key for the plugin version. * @param string $plugin_version The most recent plugin version. * @param string $db_version The plugin version stored in the database pre upgrade. * @param string $meta_key The meta field key. * * @return void */ function _atf_locks_version_upgraded_notice( $updated, $db_version_key, $plugin_version, $db_version, $meta_key ){ if ( $updated ) { $_msg = sprintf( '

%1$s has been upgraded to version %2$s

', __( 'Advanced Term Fields: Locks', 'atf-locks' ), $plugin_version ); add_action( 'admin_notices', function() use ( $_msg ) { echo $_msg; } ); } }