• Hello,

    Such a problem. Polylang 1.5.3. WP 3.6.1

    When I add new item (page) to some menu i get a single warning like this:

    Warning: Missing argument 3 for PLL_Admin_Filters_Post::save_post() in /home/virtualki/28508/wp-content/plugins/polylang/admin/admin-filters-post.php on line 306

    When I save the menu i get as many warnings (like above) as many items (pages) the manu contains.

    Everything looks ok. Menus save itselves. But this warnings are irritating.

    Any ideas?

    https://wordpress.org/plugins/polylang/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter lejf

    (@lejf)

    In the other site – with Polylang 1.5.2 installed – the problem doesn’t appear. I have compared the line (306) in the ‘admin-filters-post.php’ file of both versions.
    The line is different in each version. In 1.5.3 appeared the third argument ($update)

    1.5.2
    public function save_post($post_id, $post)

    1.5.3
    public function save_post($post_id, $post, $update)

    How to resolve the problem? I’m afraid to just remove this parameter out of this line. There must be some sense of it’s appearing there.
    ?

    Plugin Author Chouby

    (@chouby)

    Hi!

    Yes it is useful and that’s a bug fix. Does your problem exist when using a default theme such Twenty Twelve and all other plugins de-activated?

    EDIT: I just noticed. Are you really using WP 3.6.1?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Warning while menu operations’ is closed to new replies.