Initial Commit
This commit is contained in:
130
inc/deprecated/deprecated-apis.md
Normal file
130
inc/deprecated/deprecated-apis.md
Normal file
@ -0,0 +1,130 @@
|
||||
# Funções para Migrar
|
||||
|
||||
## Classes pata Migrar
|
||||
|
||||
* WU_Gutenberg_Support (done)
|
||||
* WU_Domain_Mapping (done)
|
||||
|
||||
* WU_Settings (done)
|
||||
* get_sections() (done)
|
||||
* get_settings() (done)
|
||||
* save_settings() (done)
|
||||
* get_setting() (done)
|
||||
* save_setting() (done)
|
||||
* get_logo() (done)
|
||||
|
||||
* WU_Signup (em progresso)
|
||||
* WU_Gateway (em progresso)
|
||||
|
||||
* WU_Error_Reporting (criar tarefa)
|
||||
|
||||
## Importante
|
||||
|
||||
* WU_Plans (done)
|
||||
* WU_Util (done)
|
||||
* WU_Site_Templates (ignored)
|
||||
* WU_Subscriptions (ignored)
|
||||
* WU_Webhooks (ignored)
|
||||
* WU_Site_Hooks (ignored)
|
||||
* WU_Plans_Limits (ignore)
|
||||
|
||||
* WU_Transactions (em progresso)
|
||||
|
||||
|
||||
* WU_Notification
|
||||
* Aqui, precisamos encaixar o filtro `apply_filters('wu_days_to_check_expired', 1)` que está sendo usado por muita gente pra mudar quantos dias devemos mandar o email de anúncio de expiração.
|
||||
|
||||
* WU_API
|
||||
* Checar com o Daniel como está essa parte da API key, para podermos organizar a migração
|
||||
|
||||
* WU_Customizer
|
||||
* Usar como referência na hora de migrar os settings para os nossos próprios customizers.
|
||||
|
||||
* WU_Shortcodes
|
||||
* Precisamos migrar os seguintes shortcodes:
|
||||
* user_meta (done)
|
||||
* paying_users (done)
|
||||
* pricing_table
|
||||
* plan_link
|
||||
* templates_list
|
||||
* restricted_content
|
||||
|
||||
## Models
|
||||
|
||||
* WU_Site (done)
|
||||
* WU_Site_Template (done)
|
||||
* WU_Site_Owner (done)
|
||||
* WU_Broadcast (ignored)
|
||||
* WU_Coupon (done)
|
||||
* WU_Plan (done)
|
||||
* WU_Subscription (done)
|
||||
|
||||
## Classes para Deprecar, com alternativa
|
||||
|
||||
* WU_Logger (done)
|
||||
* WU_Links (done)
|
||||
* WU_Mail (done) - APIs: wu_send_mail
|
||||
* WU_Page (done)
|
||||
|
||||
## Classes para Deprecar, só para não dar fatal
|
||||
|
||||
* WU_Multi_Network (done)
|
||||
* WU_Help_Pointers (done)
|
||||
|
||||
## Classes para Ignorar
|
||||
|
||||
* WU_Pro_Sites_Support (unsure)
|
||||
* WU_Widgets (done)
|
||||
|
||||
## Revisar
|
||||
|
||||
---
|
||||
|
||||
# Funções para Migrar
|
||||
|
||||
### Signup
|
||||
|
||||
* wu_create_html_attributes_from_array
|
||||
* wu_print_signup_field_option
|
||||
* wu_print_signup_field_options
|
||||
* wu_print_signup_field
|
||||
* wu_create_user
|
||||
* wu_create_site
|
||||
* wu_add_signup_step (done)
|
||||
* wu_add_signup_field (done)
|
||||
|
||||
### Models
|
||||
|
||||
* wu_get_coupon (done)
|
||||
* wu_get_plan (done)
|
||||
* wu_get_plan_by_slug (done)
|
||||
* wu_get_current_site (done)
|
||||
* wu_get_site (done)
|
||||
* wu_get_subscription (done)
|
||||
* wu_get_subscription_by_integration_key (done)
|
||||
* wu_get_current_subscription (done)
|
||||
* wu_is_active_subscriber (done)
|
||||
* wu_has_plan (done)
|
||||
|
||||
### Functions
|
||||
|
||||
* wu_get_days_ago (done)
|
||||
* wu_format_currency (done)
|
||||
|
||||
* wu_register_gateway (done)
|
||||
* wu_get_gateways (done)
|
||||
* wu_get_gateway (done)
|
||||
* wu_get_active_gateway (done, deprecated)
|
||||
|
||||
* wu_get_interval_string (done)
|
||||
|
||||
* wu_is_account_active (ignored)
|
||||
* wu_get_account_plan (ignored)
|
||||
* wu_get_offset_timestamp (ignored)
|
||||
* wu_sanitize_currency_for_saving (ignored)
|
||||
|
||||
### Coupon Code
|
||||
|
||||
* wu_fix_money_string (js, ignored)
|
||||
* wu_set_setupfee_value (js, ignored)
|
||||
* wu_set_yearly_value (js, ignored)
|
1520
inc/deprecated/deprecated.php
Normal file
1520
inc/deprecated/deprecated.php
Normal file
File diff suppressed because it is too large
Load Diff
54
inc/deprecated/early-deprecated.php
Normal file
54
inc/deprecated/early-deprecated.php
Normal file
@ -0,0 +1,54 @@
|
||||
<?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']);
|
||||
|
||||
} // end get_ip_address;
|
||||
|
||||
/**
|
||||
* 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 '';
|
||||
|
||||
} // end get_hosting_support_text;
|
||||
|
||||
} // end class WU_Domain_Mapping;
|
61
inc/deprecated/mercator.php
Normal file
61
inc/deprecated/mercator.php
Normal file
@ -0,0 +1,61 @@
|
||||
<?php
|
||||
/**
|
||||
* Mercator
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Deprecated
|
||||
* @since 2.0.0
|
||||
*/
|
||||
|
||||
namespace Mercator; // phpcs:ignore
|
||||
|
||||
// Exit if accessed directly
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* Deprecated: Class Mapping.
|
||||
*
|
||||
* @since 1.1.3
|
||||
*/
|
||||
class Mapping {
|
||||
|
||||
/**
|
||||
* Deprecated: Get mapping by domain(s).
|
||||
*
|
||||
* @since 1.1.3
|
||||
*
|
||||
* @param string $domains Domain(s) to match against.
|
||||
* @deprecated
|
||||
* @return mixed
|
||||
*/
|
||||
public static function get_by_domain($domains) {
|
||||
|
||||
_deprecated_function(__METHOD__, '2.0.0', 'wu_get_domain_by_domain($domain)');
|
||||
|
||||
if (!function_exists('wu_get_domain_by_domain')) {
|
||||
|
||||
return false;
|
||||
|
||||
} // end if;
|
||||
|
||||
$domain = false;
|
||||
|
||||
foreach ((array) $domains as $url_to_search) {
|
||||
|
||||
$found_domain = wu_get_domain_by_domain($url_to_search);
|
||||
|
||||
if ($found_domain) {
|
||||
|
||||
$domain = $found_domain;
|
||||
|
||||
break;
|
||||
|
||||
} // end if;
|
||||
|
||||
} // end foreach;
|
||||
|
||||
return $domain;
|
||||
|
||||
} // end get_by_domain;
|
||||
|
||||
} // end class Mapping;
|
Reference in New Issue
Block a user