@@ -798,7 +798,7 @@ discard block |
||
| 798 | 798 | * @param boolean $name |
| 799 | 799 | * @param boolean $taxonomy |
| 800 | 800 | * @param boolean $parent |
| 801 | - * @return void |
|
| 801 | + * @return boolean |
|
| 802 | 802 | */ |
| 803 | 803 | public function set_term( $id = false, $name = false, $taxonomy = false, $parent = false ) { |
| 804 | 804 | $term = term_exists( $name, $taxonomy ); |
@@ -1103,6 +1103,10 @@ discard block |
||
| 1103 | 1103 | return false; |
| 1104 | 1104 | } |
| 1105 | 1105 | |
| 1106 | + /** |
|
| 1107 | + * @param string $url |
|
| 1108 | + * @param string $thumb |
|
| 1109 | + */ |
|
| 1106 | 1110 | public function attach_external_image2( $url = null, $post_id = null, $thumb = null, $filename = null, $post_data = array() ) { |
| 1107 | 1111 | if ( ! $url || ! $post_id ) { return new WP_Error( 'missing', 'Need a valid URL and post ID...' ); } |
| 1108 | 1112 | |
@@ -1210,6 +1214,7 @@ discard block |
||
| 1210 | 1214 | |
| 1211 | 1215 | /** |
| 1212 | 1216 | * Does a multine search |
| 1217 | + * @param string $haystack |
|
| 1213 | 1218 | */ |
| 1214 | 1219 | public function multineedle_stripos( $haystack, $needles, $offset = 0 ) { |
| 1215 | 1220 | $found = false; |
@@ -1293,6 +1298,9 @@ discard block |
||
| 1293 | 1298 | } |
| 1294 | 1299 | } |
| 1295 | 1300 | |
| 1301 | + /** |
|
| 1302 | + * @param string $array |
|
| 1303 | + */ |
|
| 1296 | 1304 | public function shuffle_assoc( &$array ) { |
| 1297 | 1305 | $new = array(); |
| 1298 | 1306 | $keys = array_keys( $array ); |