| @@ -961,13 +961,9 @@ | ||
| 961 | 961 | * |
| 962 | 962 | * @param string $id Responsive control ID. |
| 963 | 963 | */ |
| 964 | 964 | final public function remove_responsive_control( $id ) { |
| 965 | - $devices = [ | |
| 966 | - Breakpoints_Manager::BREAKPOINT_KEY_DESKTOP, | |
| 967 | - Breakpoints_Manager::BREAKPOINT_KEY_TABLET, | |
| 968 | - Breakpoints_Manager::BREAKPOINT_KEY_MOBILE, | |
| 969 | - ]; | |
| 965 | + $devices = Plugin::$instance->breakpoints->get_active_devices_list( [ 'reverse' => true ] ); | |
| 970 | 966 | |
| 971 | 967 | foreach ( $devices as $device_name ) { |
| 972 | 968 | $id_suffix = Breakpoints_Manager::BREAKPOINT_KEY_DESKTOP === $device_name ? '' : '_' . $device_name; |
| 973 | 969 | |