-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Page for Posts: Display notice in template panel #38607
Conversation
'type' => 'number', | ||
'description' => __( 'The ID of the page that should display the latest posts', 'gutenberg' ), | ||
) | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed that static page settings aren't available when the plugin is deactivated. I think we forgot to expose these settings in REST API for 5.9.
Size Change: +214 B (0%) Total Size: 1.14 MB
ℹ️ View Unchanged
|
How do you feel about keeping the panel, but displaying a message explaining why the template cannot be changed? If we remove the entire panel we also remove the shortcut to edit the current template which seems a bit of a shame. |
@jameskoster, I've updated the logic. Let me know if you want to adjust the design. |
Looks like there's a small typo there "connot", otherwise it's good. The "Edit" link looks a bit lost, but we'll most likely address that as a part of #31591 anyway. |
Thanks for catching this. |
Nice. Do you think we should remove the dropdown in the quick edit interface as well, or is that something to do separately? |
That probably needs to be fixed in WP core. |
Good catch @Mamaduka. For the person that will work on the fix, we are talking about: that should be added directly to the settings endpoint. |
This adds the `show_on_front`, `page_on_front`, and `page_for_posts` options to the settings endpoint that were missed during WP 6.0 backports. Related PR from Gutenberg repository: * [WordPress/gutenberg#38607 #38607 Page for Posts: Display notice in template panel] Props Mamaduka, spacedmonkey, gziolo, jameskoster. See #56058. git-svn-id: https://develop.svn.wordpress.org/trunk@53588 602fd350-edb4-49c9-b593-d223f7449a82
This adds the `show_on_front`, `page_on_front`, and `page_for_posts` options to the settings endpoint that were missed during WP 6.0 backports. Related PR from Gutenberg repository: * [WordPress/gutenberg#38607 #38607 Page for Posts: Display notice in template panel] Props Mamaduka, spacedmonkey, gziolo, jameskoster. See #56058. Built from https://develop.svn.wordpress.org/trunk@53588 git-svn-id: http://core.svn.wordpress.org/trunk@53176 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This adds the `show_on_front`, `page_on_front`, and `page_for_posts` options to the settings endpoint that were missed during WP 6.0 backports. Related PR from Gutenberg repository: * [WordPress/gutenberg#38607 #38607 Page for Posts: Display notice in template panel] Props Mamaduka, spacedmonkey, gziolo, jameskoster. See #56058. Built from https://develop.svn.wordpress.org/trunk@53588 git-svn-id: https://core.svn.wordpress.org/trunk@53176 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This adds the `show_on_front`, `page_on_front`, and `page_for_posts` options to the settings endpoint that were missed during WP 6.0 backports. Related PR from Gutenberg repository: * [WordPress/gutenberg#38607 #38607 Page for Posts: Display notice in template panel] Props Mamaduka, spacedmonkey, gziolo, jameskoster, SergeyBiryukov. Merges [53588] and [53589] to the 6.0 branch. See #56058. git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53590 602fd350-edb4-49c9-b593-d223f7449a82
This adds the `show_on_front`, `page_on_front`, and `page_for_posts` options to the settings endpoint that were missed during WP 6.0 backports. Related PR from Gutenberg repository: * [WordPress/gutenberg#38607 #38607 Page for Posts: Display notice in template panel] Props Mamaduka, spacedmonkey, gziolo, jameskoster, SergeyBiryukov. Merges [53588] and [53589] to the 6.0 branch. See #56058. Built from https://develop.svn.wordpress.org/branches/6.0@53590 git-svn-id: http://core.svn.wordpress.org/branches/6.0@53178 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This adds the `show_on_front`, `page_on_front`, and `page_for_posts` options to the settings endpoint that were missed during WP 6.0 backports. Related PR from Gutenberg repository: * [WordPress/gutenberg#38607 #38607 Page for Posts: Display notice in template panel] Props Mamaduka, spacedmonkey, gziolo, jameskoster, SergeyBiryukov. Merges [53588] and [53589] to the 6.0 branch. See #56058. Built from https://develop.svn.wordpress.org/branches/6.0@53590 git-svn-id: https://core.svn.wordpress.org/branches/6.0@53178 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This PR is now backported to 6.0 branch so I'm removing the label. |
This adds the `show_on_front`, `page_on_front`, and `page_for_posts` options to the settings endpoint that were missed during WP 6.0 backports. Related PR from Gutenberg repository: * [WordPress/gutenberg#38607 #38607 Page for Posts: Display notice in template panel] Props Mamaduka, spacedmonkey, gziolo, jameskoster, SergeyBiryukov. Merges [53588] and [53589] to the 6.0 branch. See #56058. Built from https://develop.svn.wordpress.org/branches/6.0@53590
This adds the `show_on_front`, `page_on_front`, and `page_for_posts` options to the settings endpoint that were missed during WP 6.0 backports. Related PR from Gutenberg repository: * [WordPress/gutenberg#38607 #38607 Page for Posts: Display notice in template panel] Props Mamaduka, spacedmonkey, gziolo, jameskoster. See #56058. Built from https://develop.svn.wordpress.org/trunk@53588
This adds the `show_on_front`, `page_on_front`, and `page_for_posts` options to the settings endpoint that were missed during WP 6.0 backports. Related PR from Gutenberg repository: * [WordPress/gutenberg#38607 #38607 Page for Posts: Display notice in template panel] Props Mamaduka, spacedmonkey, gziolo, jameskoster, SergeyBiryukov. Merges [53588] and [53589] to the 6.0 branch. See #56058. Built from https://develop.svn.wordpress.org/branches/6.0@53590 git-svn-id: http://core.svn.wordpress.org/branches/6.0@53178 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Description
PR displays notice inside the "Templates" panel when editing "Page for Posts." Changing the template for this page has no effects;
this also matches logic in Classic Editor.Testing Instructions
Screenshots
Types of changes
Bugfix
Checklist:
*.native.js
files for terms that need renaming or removal).