HEX
Server: Apache
System: Linux webm003.cluster111.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: assotraipi (849654)
PHP: 5.4.45
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/assotraipi/www/wp-content/plugins/shortcodes-ultimate/includes/upgrade/5.6.0.php
<?php

/**
 * 1. Replace `category_description` with `term_description`
 *    in the `su_option_enable_shortcodes_in` option
 */

$old_value = get_option( 'su_option_enable_shortcodes_in' );
$new_value = array();

if ( is_array( $old_value ) ) {

	foreach ( $old_value as $item ) {

		if ( 'category_description' === $item ) {
			$item = 'term_description';
		}

		$new_value[] = $item;

	}

}

update_option( 'su_option_enable_shortcodes_in', $new_value );