diff --git a/docs/NEWS b/docs/NEWS index 4b80683c..40c68804 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,9 @@ Version 1.5 () ------------------------------------------------------------------------ + * Added new optional parameter for plugin config type "text": rows. + (brockhaus) + * pingbacks were not counted as entry trackbacks (also added to entries) (brockhaus) diff --git a/include/functions_plugins_admin.inc.php b/include/functions_plugins_admin.inc.php index a50871b4..84bfa672 100644 --- a/include/functions_plugins_admin.inc.php +++ b/include/functions_plugins_admin.inc.php @@ -419,6 +419,7 @@ function serendipity_plugin_config(&$plugin, &$bag, &$name, &$desc, &$config_nam $radio = array(); $select = array(); $per_row = null; + $text_rows = null; $is_multi_select = false; $ctype = $cbag->get('type'); @@ -565,6 +566,12 @@ function serendipity_plugin_config(&$plugin, &$bag, &$name, &$desc, &$config_nam case 'html': case 'text': + if (empty($text_rows)) { + $text_rows = $cbag->get('rows'); + if (empty($text_rows)) { + $text_rows = 20; + } + } ?> @@ -575,7 +582,7 @@ function serendipity_plugin_config(&$plugin, &$bag, &$name, &$desc, &$config_nam
- +