Kestutis
Forum Replies Created
-
hey, @wpclever , we are still having same issue with latest version. are you planing to do anything to fix it? otherwise, it is possible to get source code to fix it myself?
thank you
hey there, any updates on this one?
Forum: Plugins
In reply to: [WP-Filebase Download Manager] Tree list not loaded on mobileI found the issue. It was on classes\Output.php the way scripts was loaded. On slower internet scripts, that was dependent on others was loaded after them. So there was some methods not implemented.
My code instead of what was there:
if('function' != typeof fel.treeview) { var d1 = jQuery.Deferred(); var d2 = jQuery.Deferred(); var d3 = jQuery.Deferred(); jQuery.when(d3).done(function() { wpfb_initfb<?php echo $jss ?>(); }); d1.done(function() { jQuery.getScript('<?php echo esc_js($wp_scripts->registered['jquery-treeview-edit']->src); ?>').done(function() { d2.resolve(); }); }); d2.done(function() { jQuery.getScript('<?php echo esc_js($wp_scripts->registered['jquery-treeview-async']->src); ?>').done(function() { d3.resolve(); }); }); jQuery.getScript('<?php echo esc_js($wp_scripts->registered['jquery-treeview']->src); ?>').done(function() { d1.resolve(); }); } else { wpfb_initfb<?php echo $jss ?>(); }
I hope it will help for someone else though Filebase Pro support was not helping at all(they didn’t replied to any message I was writing to them..)
Forum: Plugins
In reply to: [Menu Icons by ThemeIsle] Disable Menu Icons for some menusSo few hours later – solution! ;]
I’m using WPML with it too, so there is an extra line for that:Menu slug that should not include icons is
main-menu
. Hope it will help someone.function my_wp_edit_nav_menu_walker($walker) { if (isset($_GET['menu'])) { $nav_menu_selected_id = $_GET['menu']; }else { $nav_menu_selected_id = absint( get_user_option( 'nav_menu_recently_edited' ) ); } if (function_exists('icl_object_id')) { global $sitepress; $nav_menu_selected_id = icl_object_id($nav_menu_selected_id, 'nav_menu', true, $sitepress->get_default_language()); } $_menu_object = wp_get_nav_menu_object( $nav_menu_selected_id ); if ($_menu_object) { if ($_menu_object->slug == 'main-menu') { return 'Walker_Nav_Menu_Edit'; } } return $walker; } add_filter('wp_edit_nav_menu_walker', 'my_wp_edit_nav_menu_walker', 100);
Forum: Plugins
In reply to: [Menu Icons by ThemeIsle] "Are You Sure You Want to Do This" errorsame issue. what I managed to find out that menu icons do not work properly with Post Expirator plugin. But the issue is the same as above mentioned with nonce validation on Menu_Icons_Admin_Nav_Menus::_save(). For now I’m removing(commenting out) check_admin_referer( ‘update-nav_menu’, ‘update-nav-menu-nonce’ ); part. I hope it will be fixed with next release.