markjaquith / page-links-to

#WordPressPlugin: Lets you make a WordPress page (or other content type) link to an external URL of your choosing, instead of its WordPress URL.
GNU General Public License v2.0
110 stars 46 forks source link

Settings Pane persists during transition to edit pattern #186

Open MadtownLems opened 6 hours ago

MadtownLems commented 6 hours ago

I'm using the filter page-links-to-post-types to remove the settings pane from a variety of post types, and have included wp_block in that.

When you edit a Pattern on its own, there's no Page Links To settings pane. 👍

However, when you use the "Create Pattern" or "Edit Original" toolbar items to switch from editing a Post to editing the Pattern, the settings pane is there. Note that it is NOT the same settings pane as the original post - it is unique to the pattern. If you set a custom URL on the post (mypost.com), and then edit the pattern, the custom URL field will be blank. You can then set something like (mypattern.com) for the Pattern (which does nothing, of course). Switching back and forth between editing the Post and editing the Pattern will have the settings pane switch from mypost.com and mypattern.com.