[Plugin: More Fields] version 2.1 | bugs & tips
-
Bug 1# select: remove double value
Select field (drop-down) it will appear the following way, eg:
blank(selected),2009,2010,2011If 2010 is chosen, it will be shown the following:
2010,blank,2010(selected),2011To remove the double 2010 value, change the following line in file more-fields-settings-object.php
line 382. if (!$value_raw) $value_raw = $value_stored;
to
line 382(fix). if (!$value_raw && $field[‘field_type’] != ‘select’) $value_raw = $value_stored;Bug #2 tinyMCE: formatselect is messed
When the plugin is installed, formatselect in tinyMCE does not show correctly the options in the drop-down options.
Still did not find a solution…Bug #3: when adding a new field to a box
Getting the following warning message after adding a field to a box
Warning: array_key_exists() expects parameter 2 to be array, null given in \wp-content\plugins\more-fields\more-plugins\more-plugins-admin.php on line 303
Still did not find a solution…Tip #1: allowing HTML in fields’ caption
Previous versions of the plugin already allowed to have HTML tags in the fields’ caption. However, it is not possible in the last versions but it may be useful to have tags in the caption to interact, for example, with jQuery. Here is a simple way to have HTML in the caption.
file more-fields-settings-object.php
line 392. $html = str_replace(‘%caption%’, ‘<p class=”mf_caption”>’ . stripslashes($field[‘caption’]) . ‘</p>’, $html);
to
line 392(fix). $html = str_replace(‘%caption%’, ‘<p class=”mf_caption”>’ . html_entity_decode(stripslashes($field[‘caption’])) . ‘</p>’, $html);
- The topic ‘[Plugin: More Fields] version 2.1 | bugs & tips’ is closed to new replies.