-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Latest Posts block: remove columns-x
class for list view
#4017
Conversation
This just uses the stock WordPress objects.
Adds test cases to fully cover the REQUEST_POST_UPDATE_SUCCESS effect.
@@ -52,7 +52,7 @@ function gutenberg_render_block_core_latest_posts( $attributes ) { | |||
$class .= ' is-grid'; | |||
} | |||
|
|||
if ( isset( $attributes['columns'] ) ) { | |||
if ( isset( $attributes['columns'] ) && 'grid' === $attributes['layout'] ) { |
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.
Based on the surrounding code, it looks like this should check to make sure the layout
key exists before checking its value.
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.
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.
We might still want the 'grid' === $attributes['layout']
check though since based on the behavior in the editor, it seems that columns are only relevant for the grid layout. Edit: Ah, that's the whole point of the PR I see 😅
This changes the opacity of a disabled button to be .3 opacity from .6 previously. This fixes #3928
…st-post-update-success Add full coverage for REQUEST_POST_UPDATE_SUCCESS effect.
Try fainter disabled state
Fix blocks when useOnce is true
Components: Add withState higher-order component
Block API: Refactor supportHTML as supports property
…dynamic Make the block settings menu item dynamic
When there are no Reusable Blocks available to add, and the user selects 'Saved' in the Inserter, display a message instead of a completely blank tab.
We were requesting all category fields while needing three of them, this change makes sure we request only the fields we need.
The mixins apply editor left/right position to the selector passed as argument. It allows to use position fixed with correct dimensions.
…dths lower than small breakpoint. Used editor-left & editor-right mixins to correctly position notices.
This change removes duplicate code and solves a bug related with resizing to small screen expanding WordPress menu and then resizing back to big screen.
Add 'No saved blocks' message to Inserter
…o-api Add ability to delete a Reusable Block to REST API
For more performance
* Bump `node-sass` to latest 4.7.2 release * Update `package-lock.json`
Description
This PR removes the
columns-x
class for list view in the Latest Posts block. This class is only necessary for grid view.Fixes #4015