Any reason this code does not work in the admin section (specifically when ajaxing but the issue persists on other pages) of WordPress but works just fine

```
ob_start();
    dynamic_sidebar('frontpage_widgets');
$content = ob_get_clean();

print_r($content); // nothing 

```

the sidebars are set from what I see (because I have called my code which registered the sidebars)

`print_r($GLOBALS['wp_registered_sidebars'])`

```
    Array
    (
        [frontpage_widgets] => Array
            (
                [name] => Frontpage Widgets
                [id] => frontpage_widgets
                [description] => Widgets for the Frontpage Widgetspage
                [class] => 
                [before_widget] => 
                ...

```

Is there something preventing the widgets from displaying in the admin section?

Edit - I seems that the widgets are not being set globally: $wp\_registered\_widgets is empty