[wp-trac] [WordPress Trac] #14136: Menus fail to work with Sitepress 1.7.9 multilanguage plugin (was: Wordpress 3.0 menus fail to work with Sitepress 1.7.9 multilanguage plugin)
WordPress Trac
wp-trac at lists.automattic.com
Tue Jun 29 09:47:59 UTC 2010
#14136: Menus fail to work with Sitepress 1.7.9 multilanguage plugin
--------------------------+-------------------------------------------------
Reporter: Povilas | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version: 3.0
Severity: normal | Keywords: wpml sitepress menus
--------------------------+-------------------------------------------------
Changes (by ocean90):
* keywords: wpml, sitepress, menus => wpml sitepress menus
* version: => 3.0
Old description:
> Wordpress menus feature cease to work when switched to another language
> in sitepress.
> query field post__in consists of wrong values because of the multiple
> usage of icl_object_id() function in one of its filter (not sure which
> one).
>
> I needed a quick fix (wp-includes/query.php:1824):
>
> $post__in = ($q['post_type']=='nav_menu_item')?$q['include']:implode(',',
> array_map( 'absint', $q['post__in'] ));
>
> Include value is left untouched by icl_object_id() so it is relevant to
> use it here.
New description:
WordPress menus feature cease to work when switched to another language in
sitepress.
query field post!__in consists of wrong values because of the multiple
usage of icl_object_id() function in one of its filter (not sure which
one).
I needed a quick fix (wp-includes/query.php:1824):
{{{
$post__in = ($q['post_type']=='nav_menu_item')?$q['include']:implode(',',
array_map( 'absint', $q['post__in'] ));
}}}
Include value is left untouched by icl_object_id() so it is relevant to
use it here.
--
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14136#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list