@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | * |
| 155 | 155 | * @since 5.3.0 |
| 156 | 156 | * |
| 157 | - * @param array $array The item to be added. |
|
| 157 | + * @param string $array The item to be added. |
|
| 158 | 158 | * |
| 159 | 159 | * @return bool True if the append succeeded, False if not. |
| 160 | 160 | */ |
@@ -283,7 +283,7 @@ discard block |
||
| 283 | 283 | * @param DOMElement $parent (optional) an element to which new children should be added. |
| 284 | 284 | * @param DOMDocument $root (optional) the parent document. |
| 285 | 285 | * |
| 286 | - * @return string|DOMDocument The rendered XML string or an object if root element is specified. |
|
| 286 | + * @return null|DOMNode The rendered XML string or an object if root element is specified. |
|
| 287 | 287 | */ |
| 288 | 288 | protected function array_to_xml_string( $array, $parent = null, $root = null ) { |
| 289 | 289 | $return_string = false; |
@@ -100,6 +100,9 @@ |
||
| 100 | 100 | ), menu_page_url( 'sharing', false ) ); |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | + /** |
|
| 104 | + * @param string $for |
|
| 105 | + */ |
|
| 103 | 106 | static function refresh_url( $service_name, $for ) { |
| 104 | 107 | return add_query_arg( array( |
| 105 | 108 | 'action' => 'request', |
@@ -31,6 +31,7 @@ discard block |
||
| 31 | 31 | * Set up hooks to extend legacy Publicize behavior. |
| 32 | 32 | * |
| 33 | 33 | * @since 5.9.1 |
| 34 | + * @param Publicize $publicize |
|
| 34 | 35 | */ |
| 35 | 36 | public function __construct( $publicize ) { |
| 36 | 37 | // Do edit page specific setup. |
@@ -56,7 +57,6 @@ discard block |
||
| 56 | 57 | * |
| 57 | 58 | * @since 5.9.1 |
| 58 | 59 | * |
| 59 | - * @param WP_REST_Request $request Request instance from REST call. |
|
| 60 | 60 | * |
| 61 | 61 | * @return string JSON encoded connection list data. |
| 62 | 62 | */ |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | * @param stdClass $new_post_obj Updated post object about to be inserted view REST endpoint. |
| 204 | 204 | * @param WP_REST_Request $request Request object, possibly containing 'publicize' field {@see add_publicize_rest_fields()}. |
| 205 | 205 | * |
| 206 | - * @return WP_Post Returns the original $new_post value unchanged. |
|
| 206 | + * @return stdClass Returns the original $new_post value unchanged. |
|
| 207 | 207 | */ |
| 208 | 208 | public function process_publicize_from_rest( $new_post_obj, $request ) { |
| 209 | 209 | global $publicize; |