freddeume
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Getting "Warning: array_map(): Argument #2 should be in arrayThe fix work. My last post was a misstake. I logged in at an not upgraded site. Sorry.
Forum: Fixing WordPress
In reply to: Getting "Warning: array_map(): Argument #2 should be in arrayI got the same problem with Event Manager.
But my function does not look exactly the same. Is it a problem?
function get_the_terms( $post, $taxonomy ) {
if ( ! $post = get_post( $post ) )
return false;$terms = get_object_term_cache( $post->ID, $taxonomy );
if ( false === $terms ) {
$terms = wp_get_object_terms( $post->ID, $taxonomy );
wp_cache_add($post->ID, $terms, $taxonomy . ‘_relationships’);
}/**
* Filter the list of terms attached to the given post.
*
* @since 3.1.0
*
* @param array|WP_Error $terms List of attached terms, or WP_Error on failure.
* @param int $post_id Post ID.
* @param string $taxonomy Name of the taxonomy.
*/
$terms = apply_filters( ‘get_the_terms’, $terms, $post->ID, $taxonomy );if ( empty( $terms ) )
return false;return $terms;
}Is it just me who has this Upload problem?
Hi,
I have the same problem. I have updated the plugin to latest version. I am using latest version of WordPress.What can I do to get this fixed?