← All changes
|
modules/global-classes/atomic-global-styles.php
+2
-2
4.0.9
→
3.34.0-beta1
View file →
| @@ -36,12 +36,12 @@ | ||
| 36 | 36 | private function register_styles( Atomic_Styles_Manager $styles_manager ) { |
| 37 | 37 | $context = is_preview() ? Global_Classes_Repository::CONTEXT_PREVIEW : Global_Classes_Repository::CONTEXT_FRONTEND; |
| 38 | 38 | |
| 39 | 39 | $get_styles = function () use ( $context ) { |
| 40 | - return Global_Classes_Repository::make()->context( $context )->all()->get_ordered_items()->map( function( $item ) { | |
| 40 | + return Global_Classes_Repository::make()->context( $context )->all()->get_items()->map( function( $item ) { | |
| 41 | 41 | $item['id'] = $item['label']; |
| 42 | 42 | return $item; |
| 43 | - })->reverse()->all(); // we should reverse the order of the items so that the last in the original array should be rendered first (to be overridden by the previous ones) | |
| 43 | + })->all(); | |
| 44 | 44 | }; |
| 45 | 45 | |
| 46 | 46 | $styles_manager->register( |
| 47 | 47 | [ self::STYLES_KEY, $context ], |