Skip to content

Docs: Fix missing global tag and remove non-standard hook tag#207

Merged
dkotter merged 2 commits intoWordPress:developfrom
huzaifaalmesbah:docs/fix-inline-documentation
Feb 2, 2026
Merged

Docs: Fix missing global tag and remove non-standard hook tag#207
dkotter merged 2 commits intoWordPress:developfrom
huzaifaalmesbah:docs/fix-inline-documentation

Conversation

@huzaifaalmesbah
Copy link
Member

@huzaifaalmesbah huzaifaalmesbah commented Jan 31, 2026

Description

This PR addresses inline documentation issues in includes/bootstrap.php and includes/helpers.php to align with WordPress coding standards.

Changes

  • includes/bootstrap.php: Added the missing @global tag for $wp_version in the check_wp_version() function docblock.
  • includes/helpers.php: Removed the non-standard @hook tag from the get_preferred_models_for_text_generation function docblock.
Open WordPress Playground Preview

@github-actions
Copy link

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: huzaifaalmesbah <huzaifaalmesbah@git.wordpress.org>

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

@codecov
Copy link

codecov bot commented Jan 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 50.80%. Comparing base (7726dc0) to head (b8c3e49).
⚠️ Report is 4 commits behind head on develop.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop     #207   +/-   ##
==========================================
  Coverage      50.80%   50.80%           
  Complexity       375      375           
==========================================
  Files             27       27           
  Lines           1978     1978           
==========================================
  Hits            1005     1005           
  Misses           973      973           
Flag Coverage Δ
unit 50.80% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jeffpaul jeffpaul requested a review from dkotter February 1, 2026 20:33
@jeffpaul jeffpaul added this to the 0.3.0 milestone Feb 1, 2026
@jeffpaul jeffpaul moved this to Needs review in WordPress AI Planning & Roadmap Feb 1, 2026
@dkotter dkotter merged commit bf5002c into WordPress:develop Feb 2, 2026
24 checks passed
@github-project-automation github-project-automation bot moved this from Needs review to Done in WordPress AI Planning & Roadmap Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants