WordPress.org

Make WordPress Core

Opened 7 months ago

Last modified 7 weeks ago

#45604 reviewing enhancement

Docs: Added description for global $wpdb

Reported by: mukesh27 Owned by: SergeyBiryukov
Milestone: 5.3 Priority: normal
Severity: normal Version: 5.0
Component: Database Keywords: has-patch dev-feedback good-first-bug
Focuses: docs Cc:

Description

In many core files document of global $wpdb id not added.

Attachments (2)

45604.patch (16.4 KB) - added by mukesh27 7 months ago.
Patch.
45604.2.patch (34.0 KB) - added by mukesh27 6 months ago.
Updated patch.

Download all attachments as: .zip

Change History (8)

@mukesh27
7 months ago

Patch.

#1 @SergeyBiryukov
7 months ago

  • Milestone changed from Awaiting Review to Future Release

Hi @mukesh27, thanks for the patch!

When adding the description for $wpdb in DocBlocks that have other global variables ($wp_query, $wp_locale, etc.), I think it would be a good idea to document those variables as well for consistency.

@mukesh27
6 months ago

Updated patch.

#2 @mukesh27
6 months ago

@SergeyBiryukov, updated patch for global WP_Screen, wp_locale, wp_query and wpdb.

#3 @SergeyBiryukov
6 months ago

#45772 was marked as a duplicate.

#4 @SergeyBiryukov
3 months ago

#46891 was marked as a duplicate.

This ticket was mentioned in Slack in #core by hareesh-pillai. View the logs.


7 weeks ago

#6 @SergeyBiryukov
7 weeks ago

  • Component changed from General to Database
  • Milestone changed from Future Release to 5.3
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing
Note: See TracTickets for help on using tickets.