Bug with namespaced widgets
-
When you have namespaced widgets like:
<?php namespace Widgets; class Example extends \WP_Widget { ... } function() { register_widget('Widgets\Example'); } add_action( 'widgets_init', 'add_example_widget' );
Then its impossible to add them in the admin. I think this is because of a bug in jQuery or Sizzle actually.
I filled a jQuery bug report for backslashes in jQuery attribute value selector.
https://bugs.jquery.com/ticket/14417A workaround would be to change the backslashes against normal slashes. In tpl/metabox-panels.php:65
data-class=”<?php echo esc_attr(str_replace(‘\\’, ‘/’, get_class($widget))) ?>”
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Bug with namespaced widgets’ is closed to new replies.