@@ -183,7 +183,7 @@ |
||
| 183 | 183 | * @access public |
| 184 | 184 | * |
| 185 | 185 | * @param string $name Property to check if set. |
| 186 | - * @return bool Whether the property is set. |
|
| 186 | + * @return boolean|null Whether the property is set. |
|
| 187 | 187 | */ |
| 188 | 188 | public function __isset( $name ) { |
| 189 | 189 | if ( in_array( $name, $this->compat_fields ) ) { |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | 51 | * |
| 52 | - * @return array |
|
| 52 | + * @return string[] |
|
| 53 | 53 | */ |
| 54 | 54 | protected function get_table_classes() { |
| 55 | 55 | // todo: remove and add CSS for .themes |
@@ -389,7 +389,7 @@ |
||
| 389 | 389 | * @since 4.3.0 |
| 390 | 390 | * @access protected |
| 391 | 391 | * |
| 392 | - * @param object $user User being acted upon. |
|
| 392 | + * @param WP_User $user User being acted upon. |
|
| 393 | 393 | * @param string $column_name Current column name. |
| 394 | 394 | * @param string $primary Primary column name. |
| 395 | 395 | * @return string Row actions output for users in Multisite. |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | * |
| 190 | 190 | * @global WP_Rewrite $wp_rewrite |
| 191 | 191 | * |
| 192 | - * @return bool True if web.config was updated successfully |
|
| 192 | + * @return null|boolean True if web.config was updated successfully |
|
| 193 | 193 | */ |
| 194 | 194 | function iis7_save_url_rewrite_rules(){ |
| 195 | 195 | if ( is_multisite() ) |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | * |
| 276 | 276 | * @since 2.0.0 |
| 277 | 277 | * |
| 278 | - * @param array $vars An array of globals to reset. |
|
| 278 | + * @param string[] $vars An array of globals to reset. |
|
| 279 | 279 | */ |
| 280 | 280 | function wp_reset_vars( $vars ) { |
| 281 | 281 | foreach ( $vars as $var ) { |
@@ -1282,7 +1282,7 @@ |
||
| 1282 | 1282 | * |
| 1283 | 1283 | * @param int|string $nav_menu_selected_id (id, slug, or name ) of the currently-selected menu |
| 1284 | 1284 | * @param string $nav_menu_selected_title Title of the currently-selected menu |
| 1285 | - * @return array $messages The menu updated message |
|
| 1285 | + * @return string[] $messages The menu updated message |
|
| 1286 | 1286 | */ |
| 1287 | 1287 | function wp_nav_menu_update_menu_items ( $nav_menu_selected_id, $nav_menu_selected_title ) { |
| 1288 | 1288 | $unsorted_menu_items = wp_get_nav_menu_items( $nav_menu_selected_id, array( 'orderby' => 'ID', 'output' => ARRAY_A, 'output_key' => 'ID', 'post_status' => 'draft,publish' ) ); |
@@ -1795,7 +1795,7 @@ discard block |
||
| 1795 | 1795 | * |
| 1796 | 1796 | * @param string $table Database table name. |
| 1797 | 1797 | * @param string $index Index name to drop. |
| 1798 | - * @return true True, when finished. |
|
| 1798 | + * @return boolean True, when finished. |
|
| 1799 | 1799 | */ |
| 1800 | 1800 | function drop_index($table, $index) { |
| 1801 | 1801 | global $wpdb; |
@@ -1818,7 +1818,7 @@ discard block |
||
| 1818 | 1818 | * |
| 1819 | 1819 | * @param string $table Database table name. |
| 1820 | 1820 | * @param string $index Database table index column. |
| 1821 | - * @return true True, when done with execution. |
|
| 1821 | + * @return boolean True, when done with execution. |
|
| 1822 | 1822 | */ |
| 1823 | 1823 | function add_clean_index($table, $index) { |
| 1824 | 1824 | global $wpdb; |
@@ -387,7 +387,7 @@ discard block |
||
| 387 | 387 | * @since Twenty Eleven 1.0 |
| 388 | 388 | * |
| 389 | 389 | * @param string $more The Read More text. |
| 390 | - * @return The filtered Read More text. |
|
| 390 | + * @return string filtered Read More text. |
|
| 391 | 391 | */ |
| 392 | 392 | function twentyeleven_auto_excerpt_more( $more ) { |
| 393 | 393 | if ( ! is_admin() ) { |
@@ -540,7 +540,7 @@ discard block |
||
| 540 | 540 | * |
| 541 | 541 | * @since Twenty Eleven 1.0 |
| 542 | 542 | * |
| 543 | - * @return string|bool URL or false when no link is present. |
|
| 543 | + * @return false|string URL or false when no link is present. |
|
| 544 | 544 | */ |
| 545 | 545 | function twentyeleven_url_grabber() { |
| 546 | 546 | if ( ! preg_match( '/<a\s[^>]*?href=[\'"](.+?)[\'"]/is', get_the_content(), $matches ) ) |
@@ -503,7 +503,7 @@ |
||
| 503 | 503 | * @access private |
| 504 | 504 | * |
| 505 | 505 | * @param string $query_string |
| 506 | - * @param array $args_to_check |
|
| 506 | + * @param string[] $args_to_check |
|
| 507 | 507 | * @param string $url |
| 508 | 508 | * @return string The altered query string |
| 509 | 509 | */ |
@@ -135,7 +135,7 @@ |
||
| 135 | 135 | * |
| 136 | 136 | * @param int $width |
| 137 | 137 | * @param int $height |
| 138 | - * @return true |
|
| 138 | + * @return boolean |
|
| 139 | 139 | */ |
| 140 | 140 | protected function update_size( $width = false, $height = false ) { |
| 141 | 141 | if ( ! $width ) |