PluginProbe
Elementor Website Builder – more than just a page builder / 3.6.4
Elementor Website Builder – more than just a page builder v3.6.4
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | core/breakpoints/manager.php +6 -10 4.0.73.6.4 View file →
@@ -3,9 +3,8 @@
3 3
4 4 use Elementor\Core\Base\Module;
5 5 use Elementor\Core\Kits\Documents\Tabs\Settings_Layout;
6 6 use Elementor\Core\Responsive\Files\Frontend;
7 -use Elementor\Modules\DevTools\Deprecation;
8 7 use Elementor\Plugin;
9 8
10 9 if ( ! defined( 'ABSPATH' ) ) {
11 10 exit; // Exit if accessed directly.
@@ -310,24 +309,24 @@
310 309 */
311 310 public static function get_default_config() {
312 311 return [
313 312 self::BREAKPOINT_KEY_MOBILE => [
314 - 'label' => esc_html__( 'Mobile Portrait', 'elementor' ),
313 + 'label' => esc_html__( 'Mobile', 'elementor' ),
315 314 'default_value' => 767,
316 315 'direction' => 'max',
317 316 ],
318 317 self::BREAKPOINT_KEY_MOBILE_EXTRA => [
319 - 'label' => esc_html__( 'Mobile Landscape', 'elementor' ),
318 + 'label' => esc_html__( 'Mobile Extra', 'elementor' ),
320 319 'default_value' => 880,
321 320 'direction' => 'max',
322 321 ],
323 322 self::BREAKPOINT_KEY_TABLET => [
324 - 'label' => esc_html__( 'Tablet Portrait', 'elementor' ),
323 + 'label' => esc_html__( 'Tablet', 'elementor' ),
325 324 'default_value' => 1024,
326 325 'direction' => 'max',
327 326 ],
328 327 self::BREAKPOINT_KEY_TABLET_EXTRA => [
329 - 'label' => esc_html__( 'Tablet Landscape', 'elementor' ),
328 + 'label' => esc_html__( 'Tablet Extra', 'elementor' ),
330 329 'default_value' => 1200,
331 330 'direction' => 'max',
332 331 ],
333 332 self::BREAKPOINT_KEY_LAPTOP => [
@@ -523,15 +522,12 @@
523 522
524 523 $deprecated_hook = 'elementor/core/responsive/get_stylesheet_templates';
525 524 $replacement_hook = 'elementor/core/breakpoints/get_stylesheet_template';
526 525
527 - /**
528 - * @type Deprecation $deprecation_module
529 - */
530 - $deprecation_module = Plugin::$instance->modules_manager->get_modules( 'dev-tools' )->deprecation;
526 + Plugin::$instance->modules_manager->get_modules( 'dev-tools' )->deprecation->deprecated_hook( $deprecated_hook, '3.2.0', $replacement_hook );
531 527
532 528 // TODO: REMOVE THIS DEPRECATED HOOK IN ELEMENTOR v3.10.0/v4.0.0
533 - $templates = $deprecation_module->apply_deprecated_filter( $deprecated_hook, [ $templates ], '3.2.0', $replacement_hook );
529 + $templates = apply_filters( $deprecated_hook, $templates );
534 530
535 531 return apply_filters( $replacement_hook, $templates );
536 532 }
537 533 }