@@ -769,6 +769,9 @@ discard block |
||
769 | 769 | return $result; |
770 | 770 | } |
771 | 771 | |
772 | + /** |
|
773 | + * @return boolean |
|
774 | + */ |
|
772 | 775 | public function set_term( $id = false, $name = false, $taxonomy = false, $parent = false ) { |
773 | 776 | // @codingStandardsIgnoreLine |
774 | 777 | if ( ! $term = term_exists( $name, $taxonomy ) ) { |
@@ -1074,6 +1077,10 @@ discard block |
||
1074 | 1077 | return false; |
1075 | 1078 | } |
1076 | 1079 | |
1080 | + /** |
|
1081 | + * @param string $url |
|
1082 | + * @param string $thumb |
|
1083 | + */ |
|
1077 | 1084 | public function attach_external_image2( $url = null, $post_id = null, $thumb = null, $filename = null, $post_data = array() ) { |
1078 | 1085 | if ( ! $url || ! $post_id ) { return new WP_Error( 'missing', 'Need a valid URL and post ID...' ); } |
1079 | 1086 | |
@@ -1184,6 +1191,7 @@ discard block |
||
1184 | 1191 | |
1185 | 1192 | /** |
1186 | 1193 | * Does a multine search |
1194 | + * @param string $haystack |
|
1187 | 1195 | */ |
1188 | 1196 | public function multineedle_stripos( $haystack, $needles, $offset = 0 ) { |
1189 | 1197 | $found = false; |
@@ -1267,6 +1275,9 @@ discard block |
||
1267 | 1275 | } |
1268 | 1276 | } |
1269 | 1277 | |
1278 | + /** |
|
1279 | + * @param string $array |
|
1280 | + */ |
|
1270 | 1281 | public function shuffle_assoc( &$array ) { |
1271 | 1282 | $new = array(); |
1272 | 1283 | $keys = array_keys( $array ); |