@@ -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,10 @@ discard block |
||
| 100 | 100 | ), menu_page_url( 'sharing', false ) ); |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | + /** |
|
| 104 | + * @param string $service_name |
|
| 105 | + * @param string $for |
|
| 106 | + */ |
|
| 103 | 107 | static function refresh_url( $service_name, $for ) { |
| 104 | 108 | return add_query_arg( array( |
| 105 | 109 | 'action' => 'request', |
@@ -111,6 +115,10 @@ discard block |
||
| 111 | 115 | ), admin_url( 'options-general.php?page=sharing' ) ); |
| 112 | 116 | } |
| 113 | 117 | |
| 118 | + /** |
|
| 119 | + * @param string $service_name |
|
| 120 | + * @param string $id |
|
| 121 | + */ |
|
| 114 | 122 | static function disconnect_url( $service_name, $id ) { |
| 115 | 123 | return add_query_arg( array( |
| 116 | 124 | 'action' => 'delete', |