.circleci
assets
bin
data
inc
admin-pages
api
builders
checkout
compat
contracts
country
database
debug
deprecated
deprecated-apis.md
deprecated.php
early-deprecated.php
mercator.php
development
domain-mapping
duplication
exception
functions
gateways
helpers
installers
integrations
internal
invoices
limitations
limits
list-tables
loaders
managers
mercator
models
next
objects
site-templates
sso
tax
traits
ui
updater
class-admin-notices.php
class-admin-themes-compatibility.php
class-ajax.php
class-api.php
class-async-calls.php
class-autoloader.php
class-cron.php
class-current.php
class-dashboard-statistics.php
class-dashboard-widgets.php
class-documentation.php
class-domain-mapping.php
class-faker.php
class-geolocation.php
class-helper.php
class-hooks.php
class-license.php
class-light-ajax.php
class-logger.php
class-maintenance-mode.php
class-newsletter.php
class-requirements.php
class-scripts.php
class-session-cookie.php
class-settings.php
class-sunrise.php
class-user-switching.php
class-views.php
class-whitelabel.php
class-wp-ultimo.php
lang
patches
tests
utils
views
.gitignore
.phpcs.xml.dist
LICENSE
autoload.php
composer.json
composer.lock
constants.php
loco.xml
phpstan.neon.dist
phpunit.xml.dist
readme.txt
rector.php
setuptest.sh
sunrise.php
uninstall.php
wp-multisite-waas.php
52 lines
1.0 KiB
PHP
52 lines
1.0 KiB
PHP
<?php
|
|
/**
|
|
* Contains deprecated functions that get loaded at sunrise.
|
|
*
|
|
* @package WP_Ultimo
|
|
* @subpackage Deprecated
|
|
* @since 2.0.0
|
|
*/
|
|
|
|
// Exit if accessed directly
|
|
defined('ABSPATH') || exit;
|
|
|
|
/**
|
|
* Deprecated: WU_Domain_Mapping
|
|
*
|
|
* This class was rewritten from scratch.
|
|
* The methods below are helper methods that are being implemented to
|
|
* prevent fatal errors.
|
|
*
|
|
* @deprecated 2.0.0
|
|
*/
|
|
class WU_Domain_Mapping {
|
|
|
|
/**
|
|
* Deprecated: get_ip_address
|
|
*
|
|
* @deprecated 2.0.0
|
|
* @return string
|
|
*/
|
|
public static function get_ip_address() {
|
|
|
|
_deprecated_function(__METHOD__, '2.0.0', '\WP_Ultimo\Domain_Mapping\Helper::get_network_public_ip()');
|
|
|
|
$ip = \WP_Ultimo\Domain_Mapping\Helper::get_network_public_ip();
|
|
|
|
return apply_filters('wu_domain_mapping_get_ip_address', $ip, $_SERVER['SERVER_ADDR']);
|
|
}
|
|
|
|
/**
|
|
* Deprecated: get_hosting_support_text
|
|
*
|
|
* @deprecated 2.0.0
|
|
* @return string
|
|
*/
|
|
public static function get_hosting_support_text() {
|
|
|
|
_deprecated_function(__METHOD__, '2.0.0');
|
|
|
|
return '';
|
|
}
|
|
}
|