admin
5 years ago
emails
5 years ago
fields
5 years ago
providers
5 years ago
templates
5 years ago
class-conditional-logic-core.php
5 years ago
class-db.php
5 years ago
class-fields.php
5 years ago
class-form.php
5 years ago
class-frontend.php
5 years ago
class-install.php
5 years ago
class-logging.php
5 years ago
class-process.php
5 years ago
class-providers.php
5 years ago
class-smart-tags.php
5 years ago
class-templates.php
5 years ago
class-widget.php
5 years ago
deprecated.php
5 years ago
functions-list.php
5 years ago
functions.php
5 years ago
integrations.php
5 years ago
deprecated.php
50 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * To be compatible with both WP 4.9 (that can run on PHP 5.2+) and WP 5.3+ (PHP 5.6+) |
| 5 | * we need to rewrite some core WP classes and tweak our own skins to not use PHP 5.6 splat operator (...$args) |
| 6 | * that were introduced in WP 5.3 in \WP_Upgrader_Skin::feedback(). |
| 7 | * This alias is a safeguard to those developers who decided to use our internal class WPForms_Install_Silent_Skin, |
| 8 | * which we deleted. |
| 9 | * |
| 10 | * @since 1.5.6.1 |
| 11 | */ |
| 12 | class_alias( 'WPForms\Helpers\PluginSilentUpgraderSkin', 'WPForms_Install_Silent_Skin' ); |
| 13 | |
| 14 | /** |
| 15 | * Get notification state, whether it's opened or closed. |
| 16 | * |
| 17 | * @deprecated 1.4.8 |
| 18 | * |
| 19 | * @since 1.4.1 |
| 20 | * |
| 21 | * @param int $form_id Form ID. |
| 22 | * @param int $notification_id Notification ID. |
| 23 | * |
| 24 | * @return string |
| 25 | */ |
| 26 | function wpforms_builder_notification_get_state( $form_id, $notification_id ) { |
| 27 | |
| 28 | _deprecated_function( __FUNCTION__, '1.4.8 of the WPForms plugin', 'wpforms_builder_settings_block_get_state()' ); |
| 29 | |
| 30 | return wpforms_builder_settings_block_get_state( $form_id, $notification_id, 'notification' ); |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * Convert bytes to megabytes (or in some cases KB). |
| 35 | * |
| 36 | * @deprecated 1.6.2 |
| 37 | * |
| 38 | * @since 1.0.0 |
| 39 | * |
| 40 | * @param int $bytes Bytes to convert to a readable format. |
| 41 | * |
| 42 | * @return string |
| 43 | */ |
| 44 | function wpforms_size_to_megabytes( $bytes ) { |
| 45 | |
| 46 | _deprecated_function( __FUNCTION__, '1.6.2 of the WPForms plugin', 'size_format()' ); |
| 47 | |
| 48 | return size_format( $bytes ); |
| 49 | } |
| 50 |