Skip to content

Commit

Permalink
Use themes.php in Legacy Widget iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks committed Mar 30, 2021
1 parent 70b003e commit ec3e9ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-library/src/legacy-widget/edit/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ export default function PreviewIframe( { idBase, instance, isVisible } ) {
<iframe
ref={ ref }
className="wp-block-legacy-widget__edit-preview"
src={ addQueryArgs( '', {
src={ addQueryArgs( 'themes.php', {
page: 'gutenberg-widgets',
'legacy-widget-preview': {
idBase,
instance,
Expand Down

0 comments on commit ec3e9ed

Please sign in to comment.