-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Docs: Correct WP_Network_Query params comments #11663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -21,15 +21,23 @@ class WP_Network_Query { | |||||
| * SQL for database query. | ||||||
| * | ||||||
| * @since 4.6.0 | ||||||
| * @var string | ||||||
| * @var string SQL statement for the last performed network query. | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Descriptions aren't appropriate here. If you really want to add one, it would go on a separate paragraph between Same goes for the following cases.
Suggested change
|
||||||
| */ | ||||||
| public $request; | ||||||
|
|
||||||
| /** | ||||||
| * SQL query clauses. | ||||||
| * | ||||||
| * @since 4.6.0 | ||||||
| * @var array | ||||||
| * @var array{ | ||||||
| * select: string, | ||||||
| * from: string, | ||||||
| * where: array, | ||||||
| * groupby: string, | ||||||
| * orderby: string, | ||||||
| * limits: string | ||||||
| * } | ||||||
| * Associative array of SQL query clauses used to build the request. | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| */ | ||||||
| protected $sql_clauses = array( | ||||||
| 'select' => '', | ||||||
|
|
@@ -44,39 +52,39 @@ class WP_Network_Query { | |||||
| * Query vars set by the user. | ||||||
| * | ||||||
| * @since 4.6.0 | ||||||
| * @var array | ||||||
| * @var array<string, mixed> Query variables for the current query. | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| */ | ||||||
| public $query_vars; | ||||||
|
|
||||||
| /** | ||||||
| * Default values for query vars. | ||||||
| * | ||||||
| * @since 4.6.0 | ||||||
| * @var array | ||||||
| * @var array<string, mixed> Default values for query variables. | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| */ | ||||||
| public $query_var_defaults; | ||||||
|
|
||||||
| /** | ||||||
| * List of networks located by the query. | ||||||
| * | ||||||
| * @since 4.6.0 | ||||||
| * @var array | ||||||
| * @var WP_Network[]|int[] Array of WP_Network objects or network IDs, depending on 'fields' parameter. | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| */ | ||||||
| public $networks; | ||||||
|
|
||||||
| /** | ||||||
| * The amount of found networks for the current query. | ||||||
| * | ||||||
| * @since 4.6.0 | ||||||
| * @var int | ||||||
| * @var int Number of networks found for the current query. | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| */ | ||||||
| public $found_networks = 0; | ||||||
|
|
||||||
| /** | ||||||
| * The number of pages. | ||||||
| * | ||||||
| * @since 4.6.0 | ||||||
| * @var int | ||||||
| * @var int Number of pages of results for the current query. | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| */ | ||||||
| public $max_num_pages = 0; | ||||||
|
|
||||||
|
|
||||||
This comment was marked as duplicate.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.