| Current Path : /home/x/b/o/xbodynamge/namtation/wp-content/ |
| Current File : /home/x/b/o/xbodynamge/namtation/wp-content/init.tar |
notices.php 0000666 00000020417 15113144631 0006730 0 ustar 00 <?php
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// phpcs:disable Generic.Arrays.DisallowLongArraySyntax.Found
if ( ! function_exists( 'aioseo_php_notice' ) ) {
/**
* Display the notice after deactivation.
*
* @since 4.0.0
*/
function aioseo_php_notice() {
$medium = false !== strpos( AIOSEO_PHP_VERSION_DIR, 'pro' ) ? 'proplugin' : 'liteplugin';
?>
<div class="notice notice-error">
<p>
<?php
echo wp_kses(
sprintf(
// Translators: 1 - Opening HTML bold tag, 2 - Closing HTML bold tag, 3 - Opening HTML link tag, 4 - Closing HTML link tag.
__( 'Your site is running an %1$sinsecure version%2$s of PHP that is no longer supported. Please contact your web hosting provider to update your PHP version or switch to a %3$srecommended WordPress hosting company%4$s.', 'all-in-one-seo-pack' ), // phpcs:ignore Generic.Files.LineLength.MaxExceeded
'<strong>',
'</strong>',
'<a href="https://www.wpbeginner.com/wordpress-hosting/" target="_blank" rel="noopener noreferrer">',
'</a>'
),
array(
'a' => array(
'href' => array(),
'target' => array(),
'rel' => array(),
),
'strong' => array(),
)
);
?>
<br><br>
<?php
echo wp_kses(
sprintf(
// Translators: 1 - Opening HTML bold tag, 2 - Closing HTML bold tag, 3 - The short plugin name ("AIOSEO"), 4 - Opening HTML link tag, 5 - Closing HTML link tag.
__( '%1$sNote:%2$s %3$s plugin is disabled on your site until you fix the issue. %4$sRead more for additional information.%5$s', 'all-in-one-seo-pack' ),
'<strong>',
'</strong>',
'AIOSEO',
'<a href="https://aioseo.com/docs/supported-php-version/?utm_source=WordPress&utm_medium=' . $medium . '&utm_campaign=outdated-php-notice" target="_blank" rel="noopener noreferrer">', // phpcs:ignore Generic.Files.LineLength.MaxExceeded
'</a>'
),
array(
'a' => array(
'href' => array(),
'target' => array(),
'rel' => array(),
),
'strong' => array(),
)
);
?>
</p>
</div>
<?php
// In case this is on plugin activation.
if ( isset( $_GET['activate'] ) ) { // phpcs:ignore HM.Security.NonceVerification.Recommended, WordPress.Security.NonceVerification.Recommended
unset( $_GET['activate'] );
}
}
}
if ( ! function_exists( 'aioseo_php_notice_deprecated' ) ) {
/**
* Display the notice after deactivation.
*
* @since 4.0.0
*/
function aioseo_php_notice_deprecated() {
$medium = false !== strpos( AIOSEO_PHP_VERSION_DIR, 'pro' ) ? 'proplugin' : 'liteplugin';
?>
<div class="notice notice-error">
<p>
<?php
echo wp_kses(
sprintf(
// Translators: 1 - Opening HTML bold tag, 2 - Closing HTML bold tag, 3 - Opening HTML link tag, 4 - Closing HTML link tag.
__( 'Your site is running an %1$soutdated version%2$s of PHP that is no longer supported and may cause issues with %3$s. Please contact your web hosting provider to update your PHP version or switch to a %4$srecommended WordPress hosting company%5$s.', 'all-in-one-seo-pack' ), // phpcs:ignore Generic.Files.LineLength.MaxExceeded
'<strong>',
'</strong>',
'<strong>AIOSEO</strong>',
'<a href="https://www.wpbeginner.com/wordpress-hosting/" target="_blank" rel="noopener noreferrer">',
'</a>'
),
array(
'a' => array(
'href' => array(),
'target' => array(),
'rel' => array(),
),
'strong' => array(),
)
);
?>
<br><br>
<?php
echo wp_kses(
sprintf(
// phpcs:ignore Generic.Files.LineLength.MaxExceeded
// Translators: 1 - Opening HTML bold tag, 2 - Closing HTML bold tag, 3 - The PHP version, 4 - The current year, 5 - The short plugin name ("AIOSEO"), 6 - Opening HTML link tag, 7 - Closing HTML link tag.
__( '%1$sNote:%2$s Support for PHP %3$s will be discontinued in %4$s. After this, if no further action is taken, %5$s functionality will be disabled. %6$sRead more for additional information.%7$s', 'all-in-one-seo-pack' ), // phpcs:ignore Generic.Files.LineLength.MaxExceeded
'<strong>',
'</strong>',
PHP_VERSION,
gmdate( 'Y' ),
'AIOSEO',
'<a href="https://aioseo.com/docs/supported-php-version/?utm_source=WordPress&utm_medium=' . $medium . '&utm_campaign=outdated-php-notice" target="_blank" rel="noopener noreferrer">', // phpcs:ignore Generic.Files.LineLength.MaxExceeded
'</a>'
),
array(
'a' => array(
'href' => array(),
'target' => array(),
'rel' => array(),
),
'strong' => array(),
)
);
?>
</p>
</div>
<?php
// In case this is on plugin activation.
if ( isset( $_GET['activate'] ) ) { // phpcs:ignore HM.Security.NonceVerification.Recommended, WordPress.Security.NonceVerification.Recommended
unset( $_GET['activate'] );
}
}
}
if ( ! function_exists( 'aioseo_wordpress_notice' ) ) {
/**
* Display the notice after deactivation.
*
* @since 4.1.2
*/
function aioseo_wordpress_notice() {
$medium = false !== strpos( AIOSEO_PHP_VERSION_DIR, 'pro' ) ? 'proplugin' : 'liteplugin';
?>
<div class="notice notice-error">
<p>
<?php
echo wp_kses(
sprintf(
// Translators: 1 - Opening HTML bold tag, 2 - Closing HTML bold tag, 3 - The plugin name ("All in One SEO").
__( 'Your site is running an %1$sinsecure version%2$s of WordPress that is no longer supported. Please update your site to the latest version of WordPress in order to continue using %3$s.', 'all-in-one-seo-pack' ), // phpcs:ignore Generic.Files.LineLength.MaxExceeded
'<strong>',
'</strong>',
'All in One SEO'
),
array(
'strong' => array(),
)
);
?>
<br><br>
<?php
echo wp_kses(
sprintf(
// phpcs:ignore Generic.Files.LineLength.MaxExceeded
// Translators: 1 - Opening HTML bold tag, 2 - Closing HTML bold tag, 3 - The short plugin name ("AIOSEO"), 4 - The current year, 5 - Opening HTML link tag, 6 - Closing HTML link tag.
__( '%1$sNote:%2$s %3$s will be discontinuing support for WordPress versions older than version 5.7 by the end of %4$s. %5$sRead more for additional information.%6$s', 'all-in-one-seo-pack' ), // phpcs:ignore Generic.Files.LineLength.MaxExceeded
'<strong>',
'</strong>',
'AIOSEO',
gmdate( 'Y' ),
'<a href="https://aioseo.com/docs/update-wordpress/?utm_source=WordPress&utm_medium=' . $medium . '&utm_campaign=outdated-wordpress-notice" target="_blank" rel="noopener noreferrer">', // phpcs:ignore Generic.Files.LineLength.MaxExceeded
'</a>'
),
array(
'a' => array(
'href' => array(),
'target' => array(),
'rel' => array(),
),
'strong' => array(),
)
);
?>
</p>
</div>
<?php
// In case this is on plugin activation.
if ( isset( $_GET['activate'] ) ) { // phpcs:ignore HM.Security.NonceVerification.Recommended, WordPress.Security.NonceVerification.Recommended
unset( $_GET['activate'] );
}
}
}
if ( ! function_exists( 'aioseo_lite_notice' ) ) {
/**
* Display the notice after deactivation when Pro is still active
* and user wanted to activate the Lite version of the plugin.
*
* @since 4.0.0
*/
function aioseo_lite_notice() {
global $aioseoLiteJustActivated, $aioseoLiteJustDeactivated;
if (
empty( $aioseoLiteJustActivated ) ||
empty( $aioseoLiteJustDeactivated )
) {
return;
}
// Currently tried to activate Lite with Pro still active, so display the message.
printf(
'<div class="notice notice-warning">
<p>%1$s</p>
<p>%2$s</p>
</div>',
esc_html__( 'Heads up!', 'all-in-one-seo-pack' ),
// Translators: 1 - "AIOSEO Pro", 2 - "AIOSEO Lite".
sprintf( esc_html__( 'Your site already has %1$s activated. If you want to switch to %2$s, please first go to Plugins > Installed Plugins and deactivate %1$s. Then, you can activate %2$s.', 'all-in-one-seo-pack' ), 'AIOSEO Pro', 'AIOSEO Lite' ) // phpcs:ignore Generic.Files.LineLength.MaxExceeded
);
if ( isset( $_GET['activate'] ) ) { // phpcs:ignore HM.Security.NonceVerification.Recommended, WordPress.Security.NonceVerification.Recommended
unset( $_GET['activate'] );
}
unset( $aioseoLiteJustActivated, $aioseoLiteJustDeactivated );
}
} activation.php 0000666 00000003744 15113144631 0007431 0 ustar 00 <?php
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! function_exists( 'aioseo_lite_just_activated' ) ) {
/**
* Store temporarily that the Lite version of the plugin was activated.
* This is needed because WP does a redirect after activation and
* we need to preserve this state to know whether user activated Lite or not.
*
* @since 4.0.0
*/
function aioseo_lite_just_activated() {
aioseo()->core->cache->update( 'lite_just_activated', true );
}
}
if ( ! function_exists( 'aioseo_lite_just_deactivated' ) ) {
/**
* Store temporarily that Lite plugin was deactivated.
* Convert temporary "activated" value to a global variable,
* so it is available through the request. Remove from the storage.
*
* @since 4.0.0
*/
function aioseo_lite_just_deactivated() {
global $aioseoLiteJustActivated, $aioseoLiteJustDeactivated;
$aioseoLiteJustActivated = (bool) aioseo()->core->cache->get( 'lite_just_activated' );
$aioseoLiteJustDeactivated = true;
aioseo()->core->cache->delete( 'lite_just_activated' );
}
}
if ( ! function_exists( 'aioseo_pro_just_activated' ) ) {
/**
* Store temporarily that the Pro version of the plugin was activated.
* This is needed because when we activate the Pro version on top
* of the Lite version, it does not trigger the activation hook in Pro.
*
* @since 4.0.0
*/
function aioseo_pro_just_activated() {
$liteActivated = is_plugin_active( 'all-in-one-seo-pack/all_in_one_seo_pack.php' );
if ( $liteActivated ) {
// Add capabilities for the current user on upgrade so that the menu is visible on the first request.
aioseo()->activate->addCapabilitiesOnUpgrade();
aioseo()->core->cache->update( 'pro_just_deactivated_lite', true );
}
}
}
// If we detect that V3 is active, let's deactivate it now.
if ( defined( 'AIOSEOP_VERSION' ) && defined( 'AIOSEO_PLUGIN_FILE' ) ) {
require_once ABSPATH . 'wp-admin/includes/plugin.php';
deactivate_plugins( plugin_basename( AIOSEO_PLUGIN_FILE ) );
} blocks.js 0000666 00000002403 15113144631 0006361 0 ustar 00 /**
* Since we dynamically load our blocks, wordpress.org cannot pick them up properly.
* This file solely exists to let WordPress know what blocks we are currently using.
*
* @since 4.2.4
*/
/* eslint-disable no-undef */
registerBlockType('aioseo/breadcrumbs', {
title : 'AIOSEO - Breadcrumbs'
})
registerBlockType('aioseo/html-sitemap', {
title : 'AIOSEO - HTML Sitemap'
})
registerBlockType('aioseo/faq', {
title : 'AIOSEO - FAQ with JSON Schema'
})
registerBlockType('aioseo/table-of-contents', {
title : 'AIOSEO - Table of Contents'
})
registerBlockType('aioseo/businessinfo', {
title : 'AIOSEO - Local Business Info'
})
registerBlockType('aioseo/locationcategories', {
title : 'AIOSEO - Local Business Location Categories'
})
registerBlockType('aioseo/locations', {
title : 'AIOSEO - Local Business Locations'
})
registerBlockType('aioseo/locationmap', {
title : 'AIOSEO - Local Business Google Map'
})
registerBlockType('aioseo/openinghours', {
title : 'AIOSEO - Local Business Opening Hours'
})
registerBlockType('aioseo/openinghours', {
title : 'AIOSEO - Author Bio (E-E-A-T)'
})
registerBlockType('aioseo/openinghours', {
title : 'AIOSEO - Author Name (E-E-A-T)'
})
registerBlockType('aioseo/openinghours', {
title : 'AIOSEO - Reviewer Name (E-E-A-T)'
}) init.php 0000666 00000002117 15113144631 0006224 0 ustar 00 <?php
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! function_exists( 'aioseoMaybePluginIsDisabled' ) ) {
/**
* Disable the AIOSEO if triggered externally.
*
* @since 4.1.5
* @version 4.5.0 Added the $file parameter and Lite check.
*
* @param string $file The plugin file.
* @return bool True if the plugin should be disabled.
*/
function aioseoMaybePluginIsDisabled( $file ) {
require_once ABSPATH . 'wp-admin/includes/plugin.php';
if (
'all-in-one-seo-pack/all_in_one_seo_pack.php' === plugin_basename( $file ) &&
is_plugin_active( 'all-in-one-seo-pack-pro/all_in_one_seo_pack.php' )
) {
return true;
}
if ( ! defined( 'AIOSEO_DEV_VERSION' ) && ! isset( $_REQUEST['aioseo-dev'] ) ) { // phpcs:ignore HM.Security.NonceVerification.Recommended, WordPress.Security.NonceVerification.Recommended
return false;
}
if ( ! isset( $_REQUEST['aioseo-disable-plugin'] ) ) { // phpcs:ignore HM.Security.NonceVerification.Recommended, WordPress.Security.NonceVerification.Recommended
return false;
}
return true;
}
}