Cannot choose post type because of autosave
-
It turns out it is not possible to choose post type.
Every time we try yo open the select box, The widget auto saves it self and refreshes.
In order to solve this issue, we made some changes to the plugin:
A. on line widgets.php:874
change the class to our own class:
from:
$class = $args['save'] ? 'class="widget-control-save" ' : '';
to
$class = $args['save'] ? 'class="gfwa-widget-control-save" ' : '';
and for handling the saving widgets.php:1166
from:<script type="text/javascript"> (function(a) { a('select.widget-control-save').live('change', function(){ wpWidgets.save( a(this).closest('div.widget'), 0, 1, 0 ); return false; }); })(jQuery); </script>
to
<script type="text/javascript"> (function(a) { a('.widgets-holder-wrap').on('change','gfwa-widget-control-save', function(){ wpWidgets.save( a(this).closest('div.widget'), 0, 1, 0 ); return false; }); })(jQuery); </script>
Is it possible to get merge this changes in?
Thanks,
Koff
https://wordpress.org/plugins/genesis-featured-widget-amplified/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Cannot choose post type because of autosave’ is closed to new replies.