Patch: wp-admin/categories.php
-
In the current CVS version of WordPress (as of 10:55pm PDT on 24 May 04) I get the following error
[error] PHP Warning: Missing argument 1 for wp_dropdown_cats() in /Users/joseph/Sites/wordpress-cvs/wp-admin/admin-functions.php on line 93
When viewing the wp-admin/categories.php page. It appears that wp_dropdown_cats() has all optional arguments except for the first one. The solution that I tried, that seems to work, is to simply add an argument of false to the wp_dropdown_cats() call that is causing the error. The following patch does the job:
diff -u -u -r1.30 categories.php
--- wp-admin/categories.php 24 May 2004 08:22:16 -0000 1.30
+++ wp-admin/categories.php 25 May 2004 05:21:07 -0000
@@ -183,7 +183,7 @@
<?php _e('Category parent:') ?>
<select name='cat' class='postform'>
<option value='0'><?php _e('None') ?></option>
- <?php wp_dropdown_cats(); ?>
+ <?php wp_dropdown_cats(false); ?>
</select>
<?php _e('Description: (optional)') ?>
<textarea name="category_description" rows="5" cols="50" style="width: 97%;"></textarea>
@@ -196,4 +196,4 @@
}
include('admin-footer.php');
-?>
\ No newline at end of file
+?>
Please note that tabs and things like that are all messed up i this patch because of cut-n-paste action.
- The topic ‘Patch: wp-admin/categories.php’ is closed to new replies.