Coder Social home page Coder Social logo

10up / block-catalog Goto Github PK

View Code? Open in Web Editor NEW
40.0 46.0 2.0 2.6 MB

Easily keep track of which Gutenberg Blocks are used across your WordPress site.

Home Page: https://wordpress.org/plugins/block-catalog/

License: GNU General Public License v2.0

CSS 0.33% JavaScript 11.93% PHP 83.54% Shell 4.20%
blocks custom-blocks developer gutenberg wordpress-plugin

block-catalog's People

Contributors

dependabot[bot] avatar dkotter avatar dsawardekar avatar faisal-alvi avatar jeffpaul avatar peterwilsoncc avatar qasumitbagthariya avatar ravinderk avatar sidsector9 avatar tlovett1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

block-catalog's Issues

PHP Warnings due to missing defaults in CatalogCommand

Describe the bug

There a few PHP Warnings in the plugin when running on PHP 8.2.

Deprecated: Optional parameter $sites declared before required parameter $opts is implicitly treated as a required parameter in /chroot/var/www/wp-content/plugins/block-catalog/includes/classes/CatalogCommand.php on line 410 

Deprecated: Optional parameter $args declared before required parameter $opts is implicitly treated as a required parameter in /chroot/var/www/wp-content/plugins/block-catalog/includes/classes/CatalogCommand.php on line 431

Steps to Reproduce

  1. With the Block Catalog Plugin active, on a PHP 8.2 environment.
  2. Run any WP CLI command like, wp --help.
  3. You will see a few PHP warnings that originate in the Block Catalog plugin.

Screenshots, screen recording, code snippet

No response

Environment information

  • PHP 8.2+

WordPress information

  • Any

Code of Conduct

  • I agree to follow this project's Code of Conduct

Release version 1.5.2

This issue is for tracking changes for the 1.5.2 release. Target release date: November 2023.

Release steps

  • Branch: Starting from develop, cut a release branch named release/1.5.2 for your changes.
  • Version bump: Bump the version number in block-catalog.php, package-lock.json, package.json, and readme.txt if it does not already reflect the version being released. In block-catalog.php update both the plugin "Version:" property and the plugin BLOCK_CATALOG_PLUGIN_VERSION constant.
  • Changelog: Add/update the changelog in CHANGELOG.md and readme.txt.
  • Props: update CREDITS.md file with any new contributors, confirm maintainers are accurate.
  • New files: Check to be sure any new files/paths that are unnecessary in the production version are included in .gitattributes.
  • Readme updates: Make any other readme changes as necessary. README.md is geared toward GitHub and readme.txt contains WordPress.org-specific content. The two are slightly different.
  • Merge: Make a non-fast-forward merge from your release branch to develop (or merge the pull request), then do the same for develop into trunk, ensuring you pull the most recent changes into develop first (git checkout develop && git pull origin develop && git checkout trunk && git merge --no-ff develop). trunk contains the stable development version.
  • Push: Push your trunk branch to GitHub (e.g. git push origin trunk).
  • Compare trunk to develop to ensure no additional changes were missed.
  • Test the pre-release ZIP locally by downloading it from the Build release zip action artifact and installing it locally. Ensure this zip has all the files we expect, that it installs and activates correctly and that all basic functionality is working.
  • Release: Create a new release, naming the tag and the release with the new version number, and targeting the trunk branch. Paste the changelog from CHANGELOG.md into the body of the release and include a link to the closed issues on the milestone.
  • SVN: Wait for the GitHub Action to finish deploying to the WordPress.org repository. If all goes well, users with SVN commit access for that plugin will receive an emailed diff of changes.
  • Check WordPress.org: Ensure that the changes are live on WordPress.org. This may take a few minutes.
  • Close milestone: Edit the milestone with release date (in the Due date (optional) field) and link to GitHub release (in the Description field), then close the milestone.
  • Punt incomplete items: If any open issues or PRs which were milestoned for 1.5.1 do not make it into the release, update their milestone to 1.6.0 or Future Release.

Release version 1.5.4

This issue is for tracking changes for the 1.5.4 release. Target release date: February 2024.

Release steps

  • Branch: Starting from develop, cut a release branch named release/1.5.4 for your changes.
  • Version bump: Bump the version number in block-catalog.php, package-lock.json, package.json, and readme.txt if it does not already reflect the version being released. In block-catalog.php update both the plugin "Version:" property and the plugin BLOCK_CATALOG_PLUGIN_VERSION constant.
  • Changelog: Add/update the changelog in CHANGELOG.md and readme.txt.
  • Props: update CREDITS.md file with any new contributors, confirm maintainers are accurate.
  • New files: Check to be sure any new files/paths that are unnecessary in the production version are included in .gitattributes.
  • Readme updates: Make any other readme changes as necessary. README.md is geared toward GitHub and readme.txt contains WordPress.org-specific content. The two are slightly different.
  • Merge: Make a non-fast-forward merge from your release branch to develop (or merge the pull request), then do the same for develop into trunk, ensuring you pull the most recent changes into develop first (git checkout develop && git pull origin develop && git checkout trunk && git merge --no-ff develop). trunk contains the stable development version.
  • Push: Push your trunk branch to GitHub (e.g. git push origin trunk).
  • Compare trunk to develop to ensure no additional changes were missed.
  • Test the pre-release ZIP locally by downloading it from the Build release zip action artifact and installing it locally. Ensure this zip has all the files we expect, that it installs and activates correctly and that all basic functionality is working.
  • Release: Create a new release, naming the tag and the release with the new version number, and targeting the trunk branch. Paste the changelog from CHANGELOG.md into the body of the release and include a link to the closed issues on the milestone.
  • SVN: Wait for the GitHub Action to finish deploying to the WordPress.org repository. If all goes well, users with SVN commit access for that plugin will receive an emailed diff of changes.
  • Check WordPress.org: Ensure that the changes are live on WordPress.org. This may take a few minutes.
  • Close milestone: Edit the milestone with release date (in the Due date (optional) field) and link to GitHub release (in the Description field), then close the milestone.
  • Punt incomplete items: If any open issues or PRs which were milestoned for 1.5.4 do not make it into the release, update their milestone to 1.6.0 or Future Release.

pages/posts containing a block used as an inner block, are not listed in the block catalog GUI

Describe the bug

Oddly, when viewing the catalog page (e.g. wp-admin/edit.php?block-catalog=core-preformatted) that contain a particular block, when that block is used as an inner block, that page is not listed in the GUI.

However, when using the wp block-catalog find command, posts containing blocks that are used as inner blocks are returned in the results.

I am able to reproduce in both instances when the posts have published status or draft status.

Steps to Reproduce

  1. create a new post or page, ideally on a fresh, plain site with minimal content.
  2. add a inner block to the post content.
    In the code example below, there's a preformatted block within a group block; and it's the only use of the preformatted block on this site.
<!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} -->

<div class="wp-block-group"><!-- wp:paragraph -->
<p>this is an example of within a group block</p>
<!-- /wp:paragraph -->

<!-- wp:preformatted -->
<pre class="wp-block-preformatted">this is preformatted text within a group block</pre>
<!-- /wp:preformatted --></div>
<!-- /wp:group -->
  1. publish
  2. Index posts
  3. view block catalog (wp-admin/edit-tags.php?taxonomy=block-catalog). You'll see that the block, when used, as an inner block, is included in the count of how many times that block appears on the site.
  4. visit the catalog page for a particular block (wp-admin/edit.php?block-catalog=core-preformatted); you'll see that no pages or posts are listed as containing that block.
  5. wp block-catalog find core/preformatted ; you'll find that the post/page is correctly listed containing the preformatted block

Screenshots, screen recording, code snippet

Selection_300
Selection_301

Environment information

n/a

WordPress information

gutenberg 15.8.1, WP 6.2.1

Code of Conduct

  • I agree to follow this project's Code of Conduct

Release version 1.6.1

Describe your question

Describe your question

This issue is for tracking changes for the 1.6.1 release. Target release date: July 2024.

Release steps

  • Branch: Starting from develop, cut a release branch named release/1.6.1 for your changes.
  • Version bump: Bump the version number in block-catalog.php, package-lock.json, package.json, and readme.txt if it does not already reflect the version being released. In block-catalog.php update both the plugin "Version:" property and the plugin BLOCK_CATALOG_PLUGIN_VERSION constant.
  • Changelog: Add/update the changelog in CHANGELOG.md and readme.txt.
  • Props: update CREDITS.md file with any new contributors, confirm maintainers are accurate.
  • New files: Check to be sure any new files/paths that are unnecessary in the production version are included in .gitattributes.
  • Readme updates: Make any other readme changes as necessary. README.md is geared toward GitHub and readme.txt contains WordPress.org-specific content. The two are slightly different.
  • Merge: Make a non-fast-forward merge from your release branch to develop (or merge the pull request), then do the same for develop into trunk, ensuring you pull the most recent changes into develop first (git checkout develop && git pull origin develop && git checkout trunk && git merge --no-ff develop). trunk contains the stable development version.
  • Push: Push your trunk branch to GitHub (e.g. git push origin trunk).
  • Compare trunk to develop to ensure no additional changes were missed.
  • Test the pre-release ZIP locally by downloading it from the Build release zip action artifact and installing it locally. Ensure this zip has all the files we expect, that it installs and activates correctly and that all basic functionality is working.
  • Release: Create a new release, naming the tag and the release with the new version number, and targeting the trunk branch. Paste the changelog from CHANGELOG.md into the body of the release and include a link to the closed issues on the milestone.
  • SVN: Wait for the GitHub Action to finish deploying to the WordPress.org repository. If all goes well, users with SVN commit access for that plugin will receive an emailed diff of changes.
  • Check WordPress.org: Ensure that the changes are live on WordPress.org. This may take a few minutes.
  • Close milestone: Edit the milestone with release date (in the Due date (optional) field) and link to GitHub release (in the Description field), then close the milestone.
  • Punt incomplete items: If any open issues or PRs which were milestoned for 1.6.1 do not make it into the release, update their milestone to 1.7.0 or Future Release.

Code of Conduct

  • I agree to follow this project's Code of Conduct

PHP 8.2 deprecation for using ${var} in strings is deprecated

Describe the bug

I am running my site on PHP 8.2 with WP_DEBUG set to true. The error logs at the top of the screen flag the use of variables in strings.

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/wp-content/plugins/block-catalog/includes/core.php on line 166

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/wp-content/plugins/block-catalog/includes/core.php on line 184

Steps to Reproduce

  1. Update to PHP 8.2
  2. enabled WP_DEBUG
  3. Activate this plugin
  4. View the frontend

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress information

WordPress 6.2.2

Code of Conduct

  • I agree to follow this project's Code of Conduct

Dashboard

Is your enhancement related to a problem? Please describe.

Is some kind of dashboard planned for a future release where a content editor can view all instances where a specific block is used, rather than relying on the post type/taxonomy screen?

Designs

No response

Describe alternatives you've considered

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

The plugin hasn't been tested with an upcoming version of WordPress

There is an upcoming WordPress version in the release candidate stage that the plugin hasn't been tested with. Please test it and then change the "Tested up to" field in the plugin readme.

Tested up to: 6.5
Upcoming version: 6.6

This issue will be closed automatically when the versions match.

Release version 1.5.1

This issue is for tracking changes for the 1.5.1 release. Target release date: October 2023.

Release steps

  • Branch: Starting from develop, cut a release branch named release/1.5.1 for your changes.
  • Version bump: Bump the version number in block-catalog.php, package-lock.json, package.json, and readme.txt if it does not already reflect the version being released. In block-catalog.php update both the plugin "Version:" property and the plugin BLOCK_CATALOG_PLUGIN_VERSION constant.
  • Changelog: Add/update the changelog in CHANGELOG.md and readme.txt.
  • Props: update CREDITS.md file with any new contributors, confirm maintainers are accurate.
  • New files: Check to be sure any new files/paths that are unnecessary in the production version are included in .gitattributes.
  • Readme updates: Make any other readme changes as necessary. README.md is geared toward GitHub and readme.txt contains WordPress.org-specific content. The two are slightly different.
  • Merge: Make a non-fast-forward merge from your release branch to develop (or merge the pull request), then do the same for develop into trunk, ensuring you pull the most recent changes into develop first (git checkout develop && git pull origin develop && git checkout trunk && git merge --no-ff develop). trunk contains the stable development version.
  • Push: Push your trunk branch to GitHub (e.g. git push origin trunk).
  • Compare trunk to develop to ensure no additional changes were missed.
  • Test the pre-release ZIP locally by downloading it from the Build release zip action artifact and installing it locally. Ensure this zip has all the files we expect, that it installs and activates correctly and that all basic functionality is working.
  • Release: Create a new release, naming the tag and the release with the new version number, and targeting the trunk branch. Paste the changelog from CHANGELOG.md into the body of the release and include a link to the closed issues on the milestone.
  • SVN: Wait for the GitHub Action to finish deploying to the WordPress.org repository. If all goes well, users with SVN commit access for that plugin will receive an emailed diff of changes.
  • Check WordPress.org: Ensure that the changes are live on WordPress.org. This may take a few minutes.
  • Close milestone: Edit the milestone with release date (in the Due date (optional) field) and link to GitHub release (in the Description field), then close the milestone.
  • Punt incomplete items: If any open issues or PRs which were milestoned for 1.5.1 do not make it into the release, update their milestone to 1.5.2, 1.6.0 or Future Release.

Release version 1.6.0

Describe your question

This issue is for tracking changes for the 1.6.0 release. Target release date: May 2024.

Release steps

  • Branch: Starting from develop, cut a release branch named release/1.6.0 for your changes.
  • Version bump: Bump the version number in block-catalog.php, package-lock.json, package.json, and readme.txt if it does not already reflect the version being released. In block-catalog.php update both the plugin "Version:" property and the plugin BLOCK_CATALOG_PLUGIN_VERSION constant.
  • Changelog: Add/update the changelog in CHANGELOG.md and readme.txt.
  • Props: update CREDITS.md file with any new contributors, confirm maintainers are accurate.
  • New files: Check to be sure any new files/paths that are unnecessary in the production version are included in .gitattributes.
  • Readme updates: Make any other readme changes as necessary. README.md is geared toward GitHub and readme.txt contains WordPress.org-specific content. The two are slightly different.
  • Merge: Make a non-fast-forward merge from your release branch to develop (or merge the pull request), then do the same for develop into trunk, ensuring you pull the most recent changes into develop first (git checkout develop && git pull origin develop && git checkout trunk && git merge --no-ff develop). trunk contains the stable development version.
  • Push: Push your trunk branch to GitHub (e.g. git push origin trunk).
  • Compare trunk to develop to ensure no additional changes were missed.
  • Test the pre-release ZIP locally by downloading it from the Build release zip action artifact and installing it locally. Ensure this zip has all the files we expect, that it installs and activates correctly and that all basic functionality is working.
  • Release: Create a new release, naming the tag and the release with the new version number, and targeting the trunk branch. Paste the changelog from CHANGELOG.md into the body of the release and include a link to the closed issues on the milestone.
  • SVN: Wait for the GitHub Action to finish deploying to the WordPress.org repository. If all goes well, users with SVN commit access for that plugin will receive an emailed diff of changes.
  • Check WordPress.org: Ensure that the changes are live on WordPress.org. This may take a few minutes.
  • Close milestone: Edit the milestone with release date (in the Due date (optional) field) and link to GitHub release (in the Description field), then close the milestone.
  • Punt incomplete items: If any open issues or PRs which were milestoned for 1.6.0 do not make it into the release, update their milestone to 1.7.0 or Future Release.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Update main plugin filename

Is your enhancement related to a problem? Please describe.

The current main PHP file is named plugin.php whereas our OSS standard is to usually match the project name, in this case could/should be block-catalog.php. So this issue documents the need to update the filename and any other references within the codebase.

Designs

n/a

Describe alternatives you've considered

n/a

Code of Conduct

  • I agree to follow this project's Code of Conduct

Release version 1.5.3

This issue is for tracking changes for the 1.5.2 release. Target release date: November 2023.

Release steps

  • Branch: Starting from develop, cut a release branch named release/1.5.3 for your changes.
  • Version bump: Bump the version number in block-catalog.php, package-lock.json, package.json, and readme.txt if it does not already reflect the version being released. In block-catalog.php update both the plugin "Version:" property and the plugin BLOCK_CATALOG_PLUGIN_VERSION constant.
  • Changelog: Add/update the changelog in CHANGELOG.md and readme.txt.
  • Props: update CREDITS.md file with any new contributors, confirm maintainers are accurate.
  • New files: Check to be sure any new files/paths that are unnecessary in the production version are included in .gitattributes.
  • Readme updates: Make any other readme changes as necessary. README.md is geared toward GitHub and readme.txt contains WordPress.org-specific content. The two are slightly different.
  • Merge: Make a non-fast-forward merge from your release branch to develop (or merge the pull request), then do the same for develop into trunk, ensuring you pull the most recent changes into develop first (git checkout develop && git pull origin develop && git checkout trunk && git merge --no-ff develop). trunk contains the stable development version.
  • Push: Push your trunk branch to GitHub (e.g. git push origin trunk).
  • Compare trunk to develop to ensure no additional changes were missed.
  • Test the pre-release ZIP locally by downloading it from the Build release zip action artifact and installing it locally. Ensure this zip has all the files we expect, that it installs and activates correctly and that all basic functionality is working.
  • Release: Create a new release, naming the tag and the release with the new version number, and targeting the trunk branch. Paste the changelog from CHANGELOG.md into the body of the release and include a link to the closed issues on the milestone.
  • SVN: Wait for the GitHub Action to finish deploying to the WordPress.org repository. If all goes well, users with SVN commit access for that plugin will receive an emailed diff of changes.
  • Check WordPress.org: Ensure that the changes are live on WordPress.org. This may take a few minutes.
  • Close milestone: Edit the milestone with release date (in the Due date (optional) field) and link to GitHub release (in the Description field), then close the milestone.
  • Punt incomplete items: If any open issues or PRs which were milestoned for 1.5.3 do not make it into the release, update their milestone to 1.6.0 or Future Release.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.