PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /home/ngamzghe/brikanda.com/wp-content/themes/genesis/lib/classes/Upgrade/ |
| Server: Linux server1.ngambekcore.com 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 04:00:07 EDT 2025 x86_64 IP: 159.198.77.92 |
| Dir : /home/ngamzghe/brikanda.com/wp-content/themes/genesis/lib/classes/Upgrade/Upgrade_DB_1800.php |
<?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 StudioPress\Genesis
* @author StudioPress
* @license GPL-2.0-or-later
* @link https://my.studiopress.com/themes/genesis/
*/
namespace StudioPress\Genesis\Upgrade;
/**
* Upgrade class. Called when `db_version` Genesis setting is below 1800.
*
* @since 3.1.0
*/
class Upgrade_DB_1800 implements Upgrade_DB_Interface {
/**
* Upgrade method.
*
* @since 1.8.0
* @since 3.1.0 Moved to class method.
*/
public function upgrade() {
$this->convert_term_meta();
}
/**
* Convert term meta for new title/description options.
*
* @since 2.6.0
* @since 3.1.0 Moved to class method.
*/
public function convert_term_meta() {
$term_meta = get_option( 'genesis-term-meta' );
$terms = get_terms(
get_taxonomies(),
[
'hide_empty' => false,
]
);
foreach ( (array) $terms as $term ) {
if ( ! empty( $term_meta[ $term->term_id ]['display_title'] ) ) {
$term_meta[ $term->term_id ]['headline'] = $term->name;
}
if ( ! empty( $term_meta[ $term->term_id ]['display_description'] ) ) {
$term_meta[ $term->term_id ]['intro_text'] = $term->description;
}
}
update_option( 'genesis-term-meta', $term_meta );
}
}