Polylang breaks admin UI with: "Notice: Undefined index: inline_lang_choice"
-
Hello,
I have Polylang version 1.8.5 installed.
POSSIBLE ISSUE ROOT:
I think$postarr['inline_lang_choice']
might not always be present.ERROR:
I get the following error:Notice: Undefined index: inline_lang_choice in /my/path/wordpress/wp-content/plugins/polylang/admin/admin-filters-post.php on line 472
ERROR SCENARIO:
This happens when I submit the bulk edit form of my custom post type. My custom post type admin list that does NOT have the Polylang language columns in it, as the standard Post list has. (I use the standard wordpress admin lists for my custom post types, not my own list UI)I temporarily fixed this by wrapping lines 472 to 475 of polylangs’ admin-filters-post.php file with this if clause:
if(isset($postarr['inline_lang_choice'])) {
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Polylang breaks admin UI with: "Notice: Undefined index: inline_lang_choice"’ is closed to new replies.