Make WordPress Core

Opened 21 months ago

Closed 3 weeks ago

Last modified 12 days ago

#62437 closed defect (bug) (fixed)

Bundled Themes: Edit package-related details in block theme PHP files

Reported by: viralsampat Owned by: wildworks
Priority: lowest Milestone: 7.1
Component: Bundled Theme Version:
Severity: normal Keywords: has-patch commit
Cc: Focuses: docs, coding-standards

Description (last modified by sabernhardt)

Hello Team,

I have checked wp-admin & wp-includes folders and found few PHPcs fixes.

  • There must be exactly one blank line after the file comment
  • Missing @package tag in file comment

I have applied a patch which will fix this issue.

Thanks,

Attachments (5)

62437.patch (18.2 KB ) - added by viralsampat 21 months ago.
I have checked above mentioned issue and founds few files. Here, I have added its patch.
62437.2.patch (55.8 KB ) - added by viralsampat 21 months ago.
I have checked themes and found few files where we need to fix phpcs coding standard. Here, I have attached its patch.
62437.3.patch (16.3 KB ) - added by viralsampat 20 months ago.
I have checked wp-admin and wp-includes folder and founds few files where we need to make this change, I have added its patch.
62437.4.patch (48.8 KB ) - added by viralsampat 20 months ago.
I have checked themes and found few files where we need to fix phpcs coding standard. Here, I have attached its patch.
62437.diff (942 bytes ) - added by sachinrajcp123 12 months ago.

Download all attachments as: .zip

Change History (29)

@viralsampat
21 months ago

I have checked above mentioned issue and founds few files. Here, I have added its patch.

This ticket was mentioned in Slack in #core by desrosj. View the logs.


21 months ago

#2 @desrosj
21 months ago

  • Keywords dev-feedback needs-testing removed
  • Milestone Awaiting Review6.8
  • Priority normallowest

@viralsampat
21 months ago

I have checked themes and found few files where we need to fix phpcs coding standard. Here, I have attached its patch.

#3 @SergeyBiryukov
20 months ago

  • Component GeneralBundled Theme
  • Summary The wp-admin and wp-includes wordpress core: PHPCS FixesBundled Themes: PHPCS Fixes

@viralsampat
20 months ago

I have checked wp-admin and wp-includes folder and founds few files where we need to make this change, I have added its patch.

@viralsampat
20 months ago

I have checked themes and found few files where we need to fix phpcs coding standard. Here, I have attached its patch.

#4 @poena
20 months ago

I have not been able to follow the similar tickets that have already been merged; but I think that theme changes and changes to wp-admin and wp-includes should be handled in separate issues?

Question, why is the subpackage included in Twenty Twenty-Four but not in Twenty Twenty-Three?

#5 @sabernhardt
19 months ago

  • Description modified (diff)
  • Focuses docs added
  • Summary Bundled Themes: PHPCS FixesBundled Themes: Edit package-related details in block theme PHP files

I revised the summary and description to focus on package-related information in bundled block theme PHP files, even though this ticket was originally about wp-admin and wp-includes.

  • 62437.patch edits 49 files outside bundled themes, not all related, including some external libraries.
  • 62437.2.patch edits 106 files in bundled themes, including 38 that are already part of #62166 and its PR.
  • 62437.3.patch edits 15 files outside bundled themes, not all related, including some external libraries.

62437.4.patch proposes (incomplete) changes to

  • 57 files in twentytwentyfour/patterns
    * @package WordPress
    * @subpackage Twenty_Twenty_Four
    
  • 7 files in twentytwentythree/patterns
    * @package WordPress
    

Current status of the PHP files:

  • TT5 has package, subpackage and since in functions.php and all its block patterns (plus these details are aligned in the hidden-written-by and text-faqs patterns).
  • TT4 only identifies the package and since version in the functions.php file, and the naming is not consistent with other themes. "Twenty Twenty-Four" is the package name, while other themes are subpackages of WordPress, and the name has a space and a hyphen instead of underscores. None of the theme's pattern files have these details.
  • TT3 has package, subpackage and since in functions.php but none of this information in the theme's seven block patterns.
  • TT2 has package, subpackage and since in functions.php and only the since version in the pattern registration file (inc/block-patterns.php). None of the theme's individual pattern files have these details.

#6 @desrosj
18 months ago

  • Keywords changes-requested added

@viralsampat are you able to refresh your patch to adress the feedback from @sabernhardt above?

This ticket was mentioned in PR #8379 on WordPress/wordpress-develop by @shailu25.


18 months ago
#7

Added Missing Package Details in Twenty Twenty Two, Twenty Twenty Three and Twenty Twenty Four Themes

Trac Ticket: 62437

#8 @shailu25
18 months ago

  • Keywords changes-requested removed

Added Changes as per Suggested in Above Comment

This ticket was mentioned in Slack in #core by audrasjb. View the logs.


17 months ago

#10 @audrasjb
17 months ago

  • Milestone 6.86.9

Moving to 6.9 as this task has a very low priority

#11 @shailu25
13 months ago

Refreshed Patch with the Latest Trunk. 8379

#12 @sachinrajcp123
12 months ago

I have added its patch

@shailu25 commented on PR #8379:


11 months ago
#13

Rebased with Latest Trunk.

#14 @shailu25
10 months ago

Refreshed Patch with the Latest Trunk. 8379

#15 @wildworks
9 months ago

The patch looks good, but since the RC1 release is coming soon, I'm puting this ticket to 7.0. However, if you're ready to commit, feel free to go ahead.

#16 @wildworks
9 months ago

  • Milestone 6.97.0

This ticket was mentioned in Slack in #core by audrasjb. View the logs.


6 months ago

#18 @sabernhardt
6 months ago

  • Milestone 7.07.1

Moving to consider this for a later milestone. Twenty Twenty-Two and Twenty Twenty-Three might not need a new release packaged with 7.0 (they only updated the copyright year and/or 'Tested up to' since their last releases).

#19 @sabernhardt
2 months ago

  • Keywords commit added

PR 8379 looks ready for commit.

#20 @wildworks
3 weeks ago

PR 8379 has already been approved, and I will review it again and commit it for the 7.1 release.

@wildworks commented on PR #8379:


3 weeks ago
#21

Just to be sure, I've checked this PR again and found no issues, so I'm committing it.

#22 @wildworks
3 weeks ago

  • Owner set to wildworks
  • Resolutionfixed
  • Status newclosed

In 62867:

Bundled Themes: Add missing package details to block themes.

This adds the @package, @subpackage, and @since tags to the block pattern files of Twenty Twenty-Two, Twenty Twenty-Three, and Twenty Twenty-Four, and corrects Twenty Twenty-Four's functions.php to use the @package WordPress form consistent with the other bundled themes.

Props poena, sabernhardt, shailu25, viralsampat, wildworks.
Fixes #62437.

@sabernhardt commented on PR #8379:


12 days ago
#23

I cannot close this, but the changes were committed in r62867.

@wildworks commented on PR #8379:


12 days ago
#24

Sorry, I forgot to close this.

Note: See TracTickets for help on using tickets.