-
AuthorPosts
-
May 18, 2020 at 2:21 pm #1214039
My problem same as https://kriesi.at/support/topic/button-link-option-display-error-after-copy-to-other-language-using-wpml/
I resolve this problem by
\enfold\config-templatebuilder\avia-template-builder\php\html-helper.class.php
Under this line
$selected = ( ( $new_std[0] == $post_type ) && isset( $new_std[1] ) ) ? $new_std[1] : 0;add
$selected = apply_filters(‘wpml_object_id’, $selected, $new_std[0], true );the enfold version is 4.6.1
But I recently upgraded the enfold and wordpress versions, and this problem appeared again.
Wordpress 5.4.1
enfold 4.7.3Can you help me, thank you
May 25, 2020 at 6:14 am #1215966HI~ Please help me.
May 26, 2020 at 12:00 pm #1216458Hi,
Thank you for the info.
What does the changes fix exactly? As stated on the previous thread, we were not able to reproduce the issue, so we are not entirely sure what needs fixing. Could you explain it a bit?
Best regards,
IsmaelJune 9, 2020 at 11:58 am #1220824HI
we can reproduce the issue.- This reply was modified 4 years, 6 months ago by decode.
June 15, 2020 at 10:47 am #1222592HI~ Please help me.
June 15, 2020 at 1:20 pm #1222637Hi,
Sorry for the delay. We’ll forward these changes to our channel and hopefully add it in the next patch.
Thank you for your patience.
Best regards,
IsmaelJune 16, 2020 at 2:14 pm #1223034HI~ Thank you for your reply, how long can we get the patch file ?
June 18, 2020 at 3:07 pm #1223732Hi,
We are not really sure about that. You will have to do the modification manually for now.
Best regards,
IsmaelJune 19, 2020 at 11:42 am #1224024Can you provide patched code?
June 22, 2020 at 9:51 am #1224525Hi,
We haven’t really looked into the issue because we can’t reproduce it, so we’ll probably add the changes based on what you provided above. Have you tried it again?
This is the \enfold\config-templatebuilder\avia-template-builder\php\html-helper.class.php file with the modification based on what you described above.
// https://pastebin.com/43xhHiYr
Best regards,
IsmaelJune 26, 2020 at 12:02 pm #1225779Hey!
I was informed that the patch was already added in the theme and a filter is also available if you need to modify it. The filter is called avf_alb_options_select_hierarchical_post_type_id, and the patch is inside the wp-content\themes\enfold\config-wpml\config.php file.
/** * Fixes problem with links to posts/pages in ALB elements in modal popup in backend (reported and provided by WPML comp. team) * * @since 4.5.7.2 * @param int $selected_id * @param string $object_type 'page' | 'post' | 'category' | ...... * @param array $option_selected * @param array $element * @return int */ function avia_wpml_alb_options_select_hierarchical_post_type_id( $selected_id, $object_type, array $option_selected, array $element ) { $selected_id = apply_filters( 'wpml_object_id', $selected_id, $option_selected[0], true ); return $selected_id; } add_filter( 'avf_alb_options_select_hierarchical_post_type_id', 'avia_wpml_alb_options_select_hierarchical_post_type_id', 10, 4 );
Best regards,
IsmaelOctober 6, 2020 at 6:16 am #1250695HI~
I try the patch in enfold 4.6.1, wpml 4.3.16, but the problem is still existing.October 8, 2020 at 11:49 am #1251383 -
AuthorPosts
- You must be logged in to reply to this topic.