| @@ -61,13 +61,11 @@ | ||
| 61 | 61 | if ( ! has_action( $deprecated_action ) ) { |
| 62 | 62 | return; |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | - // TODO: Hard deprecation on 3.1.0. | |
| 66 | - // $replacement = "`elementor/element/wp-post/{$section_id}/{$current_sub_action}` or `elementor/element/wp-page/{$section_id}/{$current_sub_action}`"; | |
| 67 | - // _deprecated_hook( $deprecated_action, '2.7.0', $replacement ); | |
| 65 | + $replacement = "`elementor/element/wp-post/{$section_id}/{$current_sub_action}` or `elementor/element/wp-page/{$section_id}/{$current_sub_action}`"; | |
| 68 | 66 | |
| 69 | - do_action( $deprecated_action, $instance, $section_id, $args ); | |
| 67 | + Plugin::$instance->modules_manager->get_modules( 'dev-tools' )->deprecation->do_deprecated_action( $deprecated_action, func_get_args(), '2.7.0', $replacement ); | |
| 70 | 68 | } |
| 71 | 69 | |
| 72 | 70 | public static function clear_3rd_party_cache() { |
| 73 | 71 | // W3 Total Cache. |