Docs: Adjust documentation for some pre_* filters for consistency.

See #48303.

git-svn-id: https://develop.svn.wordpress.org/trunk@47101 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2020-01-22 00:23:09 +00:00
parent 8133a247bd
commit 5db9ef75c9
5 changed files with 9 additions and 5 deletions

View File

@@ -407,7 +407,8 @@ class WP_Network {
*
* @since 3.9.0
*
* @param null|bool|WP_Network $network Network value to return by path.
* @param null|bool|WP_Network $network Network value to return by path. Default null
* to continue retrieving the network.
* @param string $domain The requested domain.
* @param string $path The requested path, in full.
* @param int|null $segments The suggested number of paths to consult.

View File

@@ -384,7 +384,8 @@ class WP_oEmbed {
*
* @since 4.5.3
*
* @param null|string $result The UNSANITIZED (and potentially unsafe) HTML that should be used to embed. Default null.
* @param null|string $result The UNSANITIZED (and potentially unsafe) HTML that should be used to embed.
* Default null to continue retrieving the result.
* @param string $url The URL to the content that should be attempted to be embedded.
* @param array $args Optional. Arguments, usually passed from a shortcode. Default empty.
*/

View File

@@ -203,7 +203,8 @@ function get_site_by_path( $domain, $path, $segments = null ) {
*
* @since 3.9.0
*
* @param null|false|WP_Site $site Site value to return by path.
* @param null|false|WP_Site $site Site value to return by path. Default null
* to continue retrieving the site.
* @param string $domain The requested domain.
* @param string $path The requested path, in full.
* @param int|null $segments The suggested number of paths to consult.

View File

@@ -932,7 +932,8 @@ function wp_is_site_initialized( $site_id ) {
*
* @since 5.1.0
*
* @param bool|null $pre The value to return, if not null.
* @param bool|null $pre The value to return instead. Default null
* to continue with the check.
* @param int $site_id The site ID that is being checked.
*/
$pre = apply_filters( 'pre_wp_is_site_initialized', null, $site_id );

View File

@@ -886,7 +886,7 @@ function count_users( $strategy = 'time', $site_id = null ) {
*
* @since 5.1.0
*
* @param null|string $result Default null.
* @param null|string $result The value to return instead. Default null to continue with the query.
* @param string $strategy Optional. The computational strategy to use when counting the users.
* Accepts either 'time' or 'memory'. Default 'time'.
* @param int|null $site_id Optional. The site ID to count users for. Defaults to the current site.