Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#14136 closed defect (bug) (invalid)

Menus fail to work with Sitepress 1.7.9 multilanguage plugin

Reported by: povilas's profile Povilas Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Menus Keywords: close
Focuses: Cc:

Description (last modified by ocean90)

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.

Change History (3)

#1 @ocean90
14 years ago

  • Description modified (diff)
  • Keywords changed from wpml, sitepress, menus to wpml sitepress menus
  • Summary changed from Wordpress 3.0 menus fail to work with Sitepress 1.7.9 multilanguage plugin to Menus fail to work with Sitepress 1.7.9 multilanguage plugin
  • Version set to 3.0

#2 @dd32
14 years ago

  • Keywords close added; wpml sitepress menus removed

Correct me if i'm wrong, But this is 100% the fault of the plugin, is it not?

#3 @nacin
14 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.