Code Duplication    Length = 5-5 lines in 2 locations

core/services/shortcodes/LegacyShortcodesManager.php 1 location

@@ 283-287 (lines=5) @@
280
            );
281
            $load_assets = $this->parseContentForShortcodes($post_content);
282
        }
283
        if ($load_assets) {
284
            $this->registry->REQ->set_espresso_page(true);
285
            add_filter('FHEE_load_css', '__return_true');
286
            add_filter('FHEE_load_js', '__return_true');
287
        }
288
        do_action('AHEE__EE_Front_Controller__initialize_shortcodes__end', $Front_Controller);
289
    }
290

core/services/shortcodes/ShortcodesManager.php 1 location

@@ 208-212 (lines=5) @@
205
                ? true
206
                : $load_assets;
207
        }
208
        if ($load_assets) {
209
            $this->legacy_shortcodes_manager->registry()->REQ->set_espresso_page(true);
210
            add_filter('FHEE_load_css', '__return_true');
211
            add_filter('FHEE_load_js', '__return_true');
212
        }
213
    }
214
215