#53413 closed enhancement (fixed)
Update the docs for $wp_version
Reported by: | azaozz | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.9 | Priority: | low |
Severity: | normal | Version: | |
Component: | General | Keywords: | good-first-bug has-patch |
Focuses: | docs | Cc: |
Description
In addition to holding the version number the WordPress version string is used to bust caches and to enable development mode for scripts when running from /src. Ideally that should be explained in the DocBlock for $wp_version
.
Attachments (1)
Change History (9)
#3
in reply to:
↑ 2
@
3 years ago
Replying to muhammadfaizanhaidar:
Yes, the docblock in version.php is the right place. Thanks.
This ticket was mentioned in PR #1675 on WordPress/wordpress-develop by MuhammadFaizanHaidar.
3 years ago
#4
- Keywords has-patch added
Updated the doc block for $wp_version
Updated the doc block to "The WordPress version string. Holds the current version number for WordPress Core, used to bust caches and to enable development mode for scripts when running from /src."
Trac ticket: https://core.trac.wordpress.org/ticket/53413
File details
wp-includes/version.php line 12.
https://github.com/MuhammadFaizanHaidar/wordpress-develop/blob/master/src/wp-includes/version.php
#5
@
3 years ago
@azaozz @SergeyBiryukov I have just uploaded a patch please review and tell me if any changes are required. Thanks!
#7
@
3 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 51809:
SergeyBiryukov commented on PR #1675:
3 years ago
#8
Thanks for the PR! Merged in https://core.trac.wordpress.org/changeset/51809.
Hi @azaozz @SergeyBiryukov I would love to contribute to this ticket. I need to know either I need to update $wp_version doc block in version.php where it has been defined or somewhere else also? Thanks