| Server IP : 8.134.250.228 / Your IP : 216.73.217.16 Web Server : Apache System : Linux iZ7xv33p9e9ivk7yhmj7ibZ 5.10.134-18.al8.x86_64 #1 SMP Fri Dec 13 16:56:53 CST 2024 x86_64 User : www ( 1000) PHP Version : 8.0.26 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/www.gobluemade.com/wp-content/plugins/xml-sitemap-feed/inc/compat/ |
Upload File : |
<?php
/**
* XML Sitemaps Manager compatibility
*
* @package XML Sitemap & Google News
*/
namespace XMLSF\Compat;
/**
* Class
*/
class XMLSM {
/**
* XML Sitemaps Manager compatibility hooked into plugins_loaded action.
*/
public static function disable() {
\remove_action( 'init', 'xmlsm_init', 9 );
\remove_action( 'admin_init', 'xmlsm_admin_init' );
\remove_action( 'init', array( 'XMLSitemapsManager\Load', 'front' ), 9 );
\remove_action( 'admin_init', array( 'XMLSitemapsManager\Load', 'admin' ) );
}
/**
* Admin notices.
*/
public static function admin_notices() {
if ( ! \current_user_can( 'manage_options' ) || \in_array( 'xml_sitemaps_manager', (array) \get_user_meta( \get_current_user_id(), 'xmlsf_dismissed' ), true ) ) {
return;
}
?>
<div class="notice notice-warning fade is-dismissible">
<p>
<?php
\printf( /* translators: Conflicting Plugn name, Plugin name */
\esc_html__( 'The %1$s XML Sitemap is not compatible with %2$s.', 'xml-sitemap-feed' ),
\esc_html__( 'XML Sitemaps Manager', 'xml-sitemaps-manager' ),
\esc_html__( 'XML Sitemap & Google News', 'xml-sitemap-feed' )
);
?>
<?php
\printf( /* translators: XML Sitemaps Manager plugin and XML Sitemap & Google News plugin names (both linked to Active Plugins admin page) */
\esc_html__( 'Please either disable %1$s or %2$s.', 'xml-sitemap-feed' ),
'<a href="' . \esc_url( \admin_url( 'plugins.php' ) ) . '?plugin_status=active">' . \esc_html__( 'XML Sitemaps Manager', 'xml-sitemaps-manager' ) . '</a>',
'<a href="' . \esc_url( \admin_url( 'plugins.php' ) ) . '?plugin_status=active">' . \esc_html__( 'XML Sitemap & Google News', 'xml-sitemap-feed' ) . '</a>'
);
?>
</p>
<form action="" method="post">
<?php \wp_nonce_field( XMLSF_BASENAME . '-notice', '_xmlsf_notice_nonce' ); ?>
<p>
<input type="hidden" name="xmlsf-dismiss" value="xml_sitemaps_manager" />
<input type="submit" class="button button-small" name="xmlsf-dismiss-submit" value="<?php echo \esc_attr( \translate( 'Dismiss' ) ); ?>" />
</p>
</form>
</div>
<?php
}
}