🔒 EXCLUSIVE: Ticket/ - Full Gallery 2025

Skip to:

Opened 5 weeks ago

Closed 3 weeks ago

Last modified 10 days ago

#3659 closed task (blessed) (fixed)

Missing inline documentation tags and formatting

Reported by: huzaifaalmesbah's profile huzaifaalmesbah Owned by: johnjamesjacoby's profile johnjamesjacoby
Milestone: 2.7 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch commit
Cc:

Description

Several core files contain inline documentation that does not fully align with WordPress PHP Documentation Standards.
Issues identified:

  • Some functions are missing @return tags.
  • Full stops (periods) are missing at the end of some function summaries and parameter descriptions.
  • Some @param tags are missing descriptions.

Affected files:

  • src/bbpress.php
  • src/includes/admin/classes/class-bbp-admin.php
  • src/includes/forums/functions.php
  • src/includes/replies/functions.php
  • src/includes/topics/functions.php
  • src/includes/users/signups.php

Change History (5)

This ticket was mentioned in PR #37 on bbpress/bbPress by @huzaifaalmesbah.


5 weeks ago
#1

  • Keywords has-patch added

This PR improves the inline documentation coverage and formatting across several core files to align with WordPress PHP Documentation Standards.
## Changes

  • Added missing @return tags.
  • Fixed missing full stops (periods) in function summaries and descriptions.
  • Populated missing @param descriptions.

## Files Modified

  • src/includes/admin/classes/class-bbp-admin.php
  • src/includes/forums/functions.php
  • src/includes/replies/functions.php
  • src/includes/topics/functions.php
  • src/includes/users/signups.php

See #3659

#2 @johnjamesjacoby
5 weeks ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 2.7
  • Owner set to johnjamesjacoby
  • Status changed from new to assigned
  • Type changed from defect (bug) to task (blessed)

Fixed missing full stops (periods) in function summaries and descriptions.

This is a rule that I've stubbornly avoided working on (because fragments don't deserve full-stops) but I suppose it's time. 😅

#3 @noruzzaman
5 weeks ago

I checked the updated files, and everything looks good now.
The missing tags and formatting issues you mentioned earlier are all fixed. Nice work!

#4 @johnjamesjacoby
3 weeks ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 7380:

Tools - Code Improvement: docs & code formatting improvements.

Props johnjamesjacoby, noruzzaman.

Fixes #3659.

Note: See TracTickets for help on using tickets.