Skip to content

Commit

Permalink
Adds small fixes/edits
Browse files Browse the repository at this point in the history
  • Loading branch information
creativecoder committed May 8, 2024
1 parent 9dfc8b4 commit 1062b8f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion plugins/time-to-read-block/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "time-to-read-block",
"version": "1.0.0",
"description": "Block to display the minutes required to finish reading a post.",
"author": "The WordPress Contributors",
"author": "WordPress.org",
"license": "GPL-2.0-or-later",
"main": "build/index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions plugins/time-to-read-block/phpcs.xml.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for the Time to Read Block plugins">
<description>Sniffs for Gutenberg, with minor modifications needed for this plugin.</description>
<ruleset name="WordPress Coding Standards for the Time to Read Block plugin">
<description>Includes sniffs for Gutenberg, with minor modifications needed for this plugin.</description>

<rule ref="../../phpcs.xml.dist"/>
<rule ref="WordPress.WP.I18n">
Expand Down
2 changes: 1 addition & 1 deletion plugins/time-to-read-block/src/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"title": "Time To Read",
"category": "theme",
"description": "Show minutes required to finish reading a post.",
"textdomain": "time-to-read",
"textdomain": "time-to-read-block",
"usesContext": [ "postId", "postType" ],
"attributes": {
"textAlign": {
Expand Down
3 changes: 1 addition & 2 deletions plugins/time-to-read-block/src/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ function PostTimeToReadEdit( { attributes, setAttributes, context } ) {
minutesToRead,
'time-to-read-block'
),
minutesToRead,
'time-to-read-block'
minutesToRead
);
}, [ contentStructure, blocks ] );

Expand Down

0 comments on commit 1062b8f

Please sign in to comment.