Skip to content

Commit be05bf7

Browse files
committed
Tidy up various docblocks.
1 parent 2abb29d commit be05bf7

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

inc/namespace.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function add_key_rewrite_rule() {
7575
/**
7676
* Handle the IndexNow key file request.
7777
*
78-
* @param WP $wp WordPress instance.
78+
* @param \WP $wp WordPress instance.
7979
*/
8080
function handle_key_file_request( $wp ) {
8181
if ( empty( $wp->query_vars['pwcc_indexnow_key'] ) ) {
@@ -127,23 +127,23 @@ function get_indexnow_key(): string {
127127
*
128128
* Runs on the `transition_post_status` action.
129129
*
130-
* @param string $new_status New post status.
131-
* @param string $old_status Old post status.
132-
* @param WP_Post $post Post object.
130+
* @param string $new_status New post status.
131+
* @param string $old_status Old post status.
132+
* @param \WP_Post $post Post object.
133133
*/
134134
function maybe_ping_indexnow( $new_status, $old_status, $post ): void {
135135
/**
136136
* Filter to preflight the IndexNow ping.
137137
*
138138
* This allow for developers to provide custom logic to determine whether
139-
* to ping IndexNow. Return `true` to ping, `false` to skip, or
139+
* to ping IndexNow. Return `true` to ping, `false` to skip ping, or
140140
* `null` to use the default logic.
141141
*
142142
* @param bool|null $preflight_ping The preflight ping decision.
143143
* Default is `null`, meaning use the default logic.
144144
* @param string $new_status The new post status.
145145
* @param string $old_status The old post status.
146-
* @param WP_Post $post The post object.
146+
* @param \WP_Post $post The post object.
147147
*/
148148
$preflight_ping = apply_filters( 'pwcc/index-now/pre-maybe-ping-indexnow', null, $new_status, $old_status, $post );
149149

@@ -152,7 +152,7 @@ function maybe_ping_indexnow( $new_status, $old_status, $post ): void {
152152
/**
153153
* Fire the action to ping IndexNow.
154154
*
155-
* @param WP_Post $post The post object.
155+
* @param \WP_Post $post The post object.
156156
*/
157157
do_action( 'pwcc/index-now/ping', $post );
158158
}
@@ -209,7 +209,7 @@ function maybe_ping_indexnow( $new_status, $old_status, $post ): void {
209209
/**
210210
* Ping IndexNow with the post URL.
211211
*
212-
* @param WP_Post|int $post The post ID or object.
212+
* @param \WP_Post|int $post The post ID or object.
213213
*/
214214
function ping_indexnow( $post ) {
215215

@@ -285,7 +285,7 @@ function ping_indexnow( $post ) {
285285
/**
286286
* Asynchronous ping to IndexNow.
287287
*
288-
* @param mixed $post The post ID or object to ping.
288+
* @param \WP_Post|int $post The post ID or object to ping.
289289
*/
290290
function async_ping_indexnow( $post ) {
291291
$post = get_post( $post );

0 commit comments

Comments
 (0)