Преглед на файлове

removing empty and unused save_option_header() function.
moving save_option_reply_prefix() to the right place.

tokul преди 20 години
родител
ревизия
c3d31b12e9
променени са 2 файла, в които са добавени 18 реда и са изтрити 23 реда
  1. 17 3
      include/options/compose.php
  2. 1 20
      include/options/display.php

+ 17 - 3
include/options/compose.php

@@ -166,10 +166,24 @@ function load_optpage_data_compose() {
 
 /******************************************************************/
 /** Define any specialized save functions for this option page. ***/
+/**                                                             ***/
+/** You must add every function that is set in save parameter   ***/
 /******************************************************************/
 
-function save_option_header($option) {
-}
+/**
+ * This function saves the reply prefix (body_quote) character(s)
+ * @param object $option
+ */
+function save_option_reply_prefix($option) {
 
+    // save as "NONE" if it was blanked out
+    //
+    if (empty($option->new_value)) $option->new_value = 'NONE';
 
-?>
+
+    // Save the option like normal.
+    //
+    save_option($option);
+
+}
+?>

+ 1 - 20
include/options/display.php

@@ -364,9 +364,6 @@ function load_optpage_data_display() {
 /** Define any specialized save functions for this option page. ***/
 /******************************************************************/
 
-function save_option_header($option) {
-}
-
 /**
  * This function saves a new theme setting.
  * It updates the theme array.
@@ -417,20 +414,4 @@ function icon_theme_save($option) {
 
 }
 
-/**
- * This function saves the reply prefix (body_quote) character(s)
- */
-function save_option_reply_prefix($option) {
-
-    // save as "NONE" if it was blanked out
-    //
-    if (empty($option->new_value)) $option->new_value = 'NONE';
-
-
-    // Save the option like normal.
-    //
-    save_option($option);
-
-}
-
-?>
+?>