Created
December 13, 2011 15:47
-
-
Save lewg/1472612 to your computer and use it in GitHub Desktop.
more-fields patch
This file contains hidden or 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
diff --git more-fields-settings-object.php more-fields-settings-object.php | |
index 77539c1..dade6d1 100644 | |
--- more-fields-settings-object.php | |
+++ more-fields-settings-object.php | |
@@ -77,9 +77,13 @@ class more_fields_admin extends more_plugins_admin_object_sputnik_8 { | |
<?php echo $css; ?> | |
</style> | |
<?php | |
- wp_tiny_mce( false ); // true gives you a stripped down version of the editor | |
- | |
- } | |
+global $post; | |
+ $post_type=get_post_type( $post->ID ); | |
+ if (!post_type_supports( $post_type, 'editor' )) { | |
+ wp_tiny_mce( false ); // true gives you a stripped down version of the editor | |
+ } | |
+ } | |
+ | |
/* | |
** | |
** | |
@@ -448,4 +452,4 @@ function mf_ua_callback($object, $box) { | |
$more_fields_settings->build_box_gut($boxes[$box['id']]); | |
} | |
-?> | |
\ No newline at end of file | |
+?> | |
diff --git more-fields.php more-fields.php | |
index a06a66b..a47bef1 100644 | |
--- more-fields.php | |
+++ more-fields.php | |
@@ -1,7 +1,7 @@ | |
<?php | |
/* | |
Plugin Name: More Fields | |
-Version: 2.1 | |
+Version: 2.1.0.1 | |
Author URI: http://more-plugins.se/ | |
Plugin URI: http://more-plugins.se/plugins/more-fields/ | |
Description: Add more input boxes to use on the write/edit page. | |
diff --git readme.txt readme.txt | |
index 637b609..90b4daa 100644 | |
--- readme.txt | |
+++ readme.txt | |
@@ -4,7 +4,7 @@ Donate link: http://henrikmelin.se/plugins | |
Tags: custom fields, admin, metadata, cms, custom fields, extra content, more plugins | |
Requires at least: 3.2.1 | |
Tested up to: 3.2.1 | |
-Stable tag: 2.1 | |
+Stable tag: 2.1.0.1 | |
Adds any number of extra fields in any number of additional boxes on the Write/Edit page in the Admin. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment