Created
December 16, 2013 15:43
-
-
Save shaunandrews/7989121 to your computer and use it in GitHub Desktop.
Making wp_widget_control() pluggable for the Better Widgets 0.2 plugin.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: src/wp-admin/includes/widgets.php | |
=================================================================== | |
--- src/wp-admin/includes/widgets.php (revision 26862) | |
+++ src/wp-admin/includes/widgets.php (working copy) | |
@@ -136,6 +136,7 @@ | |
return $number; | |
} | |
+if( ! function_exists('wp_widget_control') ) : | |
/** | |
* Meta widget used to display the control form for a widget. | |
* | |
@@ -239,3 +240,4 @@ | |
echo $sidebar_args['after_widget']; | |
return $sidebar_args; | |
} | |
+endif; | |
\ No newline at end of file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment