Widgets: Fix widget preview not working if widget registered via a instance
The register_widget function can be called with a class name or a class instance. Once called with a class instance, the class instance is converted to hash as used key in array. Props spacedmonkey, zieladam. Built from https://develop.svn.wordpress.org/trunk@51216 git-svn-id: http://core.svn.wordpress.org/trunk@50825 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.8-beta2-51215';
|
||||
$wp_version = '5.8-beta2-51216';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user