WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.53k stars 4.21k forks source link

Query Loop: Remove CreateNewPostLink component from inspector controls #67188

Open yogeshbhutkar opened 1 day ago

yogeshbhutkar commented 1 day ago

Fixes: #67177

What?

This PR addresses an enhancement mentioned in the Issue Description which enforces removal of the Add New Post link within the Query Loop Block to clear user ambiguity.

How?

The PR just removes the Component being used in the index file and deletes the component definition.

Testing Instructions

  1. Create a new Query Loop Block.
  2. Notice there's no Add New Post link on the Query Loop's Block info.

Screenshot

Screenshot 2024-11-21 at 11 47 58 AM

github-actions[bot] commented 1 day ago

Warning: Type of PR label mismatch

To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.

Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task.

github-actions[bot] commented 1 day ago

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: yogeshbhutkar <yogeshbhutkar@git.wordpress.org>
Co-authored-by: Mayank-Tripathi32 <mayanktripathi32@git.wordpress.org>
Co-authored-by: annezazu <annezazu@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.