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

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