@@ -799,7 +799,7 @@ discard block |
||
799 | 799 | * @param boolean $name |
800 | 800 | * @param boolean $taxonomy |
801 | 801 | * @param boolean $parent |
802 | - * @return void |
|
802 | + * @return boolean |
|
803 | 803 | */ |
804 | 804 | public function set_term( $id = false, $name = false, $taxonomy = false, $parent = false ) { |
805 | 805 | // @codingStandardsIgnoreLine |
@@ -1106,6 +1106,10 @@ discard block |
||
1106 | 1106 | return false; |
1107 | 1107 | } |
1108 | 1108 | |
1109 | + /** |
|
1110 | + * @param string $url |
|
1111 | + * @param string $thumb |
|
1112 | + */ |
|
1109 | 1113 | public function attach_external_image2( $url = null, $post_id = null, $thumb = null, $filename = null, $post_data = array() ) { |
1110 | 1114 | if ( ! $url || ! $post_id ) { return new WP_Error( 'missing', 'Need a valid URL and post ID...' ); } |
1111 | 1115 | |
@@ -1216,6 +1220,7 @@ discard block |
||
1216 | 1220 | |
1217 | 1221 | /** |
1218 | 1222 | * Does a multine search |
1223 | + * @param string $haystack |
|
1219 | 1224 | */ |
1220 | 1225 | public function multineedle_stripos( $haystack, $needles, $offset = 0 ) { |
1221 | 1226 | $found = false; |
@@ -1299,6 +1304,9 @@ discard block |
||
1299 | 1304 | } |
1300 | 1305 | } |
1301 | 1306 | |
1307 | + /** |
|
1308 | + * @param string $array |
|
1309 | + */ |
|
1302 | 1310 | public function shuffle_assoc( &$array ) { |
1303 | 1311 | $new = array(); |
1304 | 1312 | $keys = array_keys( $array ); |