WPML fix
-
the plugin wont work with WPML for non english pages.
you can fix it by changing the file
pages-children.php line 454 to 463 method PagesChildren::page_row_actions_filterif ($this->check_page()) { $lang = isset($_GET['lang']) ? '&lang=' . $_GET['lang'] : ''; if ( version_compare( $wp_version, '2.9.999', '>' ) ) $actions['pages-children'] = '<a class="pages-children" href="edit.php?post_type='. $_GET['post_type'] .'&post_parent='. $post->ID . $lang .'">'. __('View Sub-'. $this->object_post_taxonomy->labels->name, PAGES_CHILDREN_I18N_DOMAIN). '</a>'; else $actions['pages-children'] = '<a class="pages-children" href="edit-pages.php?post_type='.$_GET['post_type'].'&post_parent='. $post->ID . $lang .'">'. __('View Sub-'. $this->object_post_taxonomy->labels->name, PAGES_CHILDREN_I18N_DOMAIN) .'</a>'; }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘WPML fix’ is closed to new replies.