Skip to content

Commit

Permalink
Use widgets.php in Legacy Widget preview iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks committed May 31, 2021
1 parent 6d1ada7 commit 99d8764
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/block-library/src/legacy-widget/edit/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ export default function Preview( { idBase, instance, isVisible } ) {
// TODO: This chokes when the query param is too big.
// Ideally, we'd render a <ServerSideRender>. Maybe by
// rendering one in an iframe via a portal.
src={ addQueryArgs( 'themes.php', {
page: 'gutenberg-widgets',
src={ addQueryArgs( 'widgets.php', {
'legacy-widget-preview': {
idBase,
instance,
Expand Down

0 comments on commit 99d8764

Please sign in to comment.