uawdijnntqw1x1x1
IP : 18.118.151.51
Hostname : ns1.eurodns.top
Kernel : Linux ns1.eurodns.top 4.18.0-553.5.1.lve.1.el7h.x86_64 #1 SMP Fri Jun 14 14:24:52 UTC 2024 x86_64
Disable Function : mail,sendmail,exec,passthru,shell_exec,system,popen,curl_multi_exec,parse_ini_file,show_source,eval,open_base,symlink
OS : Linux
PATH:
/
home
/
sudancam
/
www
/
61c46
/
..
/
wp-content
/
plugins
/
seo-by-rank-math
/
includes
/
updates
/
..
/
class-auto-updater.php
/
/
<?php /** * Global functionality of the plugin. * * Defines the functionality loaded both on admin and frontend. * * @since 0.9.0 * @package RankMath * @subpackage RankMath\Core * @author Rank Math <support@rankmath.com> */ namespace RankMath; use RankMath\Traits\Hooker; use RankMath\Helper; defined( 'ABSPATH' ) || exit; /** * Common class. */ class Auto_Updater { use Hooker; /** * Constructor method. */ public function __construct() { $this->filter( 'auto_update_plugin', 'auto_update_plugin', 20, 2 ); $this->filter( 'plugin_auto_update_setting_html', 'plugin_auto_update_setting_html', 10, 3 ); } /** * Don't auto-update if it's a beta version. * * @param bool $update Whether to update the plugin or not. * @param array $item The update plugin object. * * @return bool */ public function auto_update_plugin( $update, $item ) { // Show auto-updates control on Plugins page. if ( did_action( 'load-plugins.php' ) ) { return $update; } if ( $this->is_rm_update( $item ) && $this->is_beta_update( $item ) ) { return false; } return $update; } /** * Check if updatable object is RM. * * @param object $item Updatable object. * @return boolean */ public function is_rm_update( $item ) { return isset( $item->slug ) && 'seo-by-rank-math' === $item->slug && isset( $item->new_version ); } /** * Check if given version is beta. * * @param string $item Update object. * @return boolean */ public function is_beta_update( $item ) { return ( is_object( $item ) && isset( $item->new_version ) && false !== stripos( $item->new_version, 'beta' ) ); } /** * Hide "update scheduled in X hours" message if update is a beta version. * * @param string $html HTML string. * @param string $plugin_file Plugin file relative to the plugin directory. * @param array $plugin_data Plugin update data. * @return string */ public function plugin_auto_update_setting_html( $html, $plugin_file, $plugin_data ) { if ( 'seo-by-rank-math/rank-math.php' !== $plugin_file ) { return $html; } if ( ! empty( $plugin_data['is_beta'] ) ) { $html = str_replace( 'class="auto-update-time"', 'class="auto-update-time hidden"', $html ); } return $html; } }
/home/sudancam/www/61c46/../wp-content/plugins/seo-by-rank-math/includes/updates/../class-auto-updater.php