@@ -26,7 +26,7 @@ class Simple_Options {
26
26
*
27
27
* @const string
28
28
*/
29
- const VERSION = '0.4.0 ' ;
29
+ const VERSION = '0.4.1 ' ;
30
30
31
31
/**
32
32
* Unique identifier for your plugin.
@@ -774,6 +774,7 @@ function _register_setting(){
774
774
775
775
776
776
register_setting ($ this ->args ['opt_name ' ].'_group ' , $ this ->args ['opt_name ' ], array (&$ this ,'_validate_options ' ));
777
+ $ runUpdate = false ;
777
778
foreach ($ this ->sections as $ k => $ section ){
778
779
779
780
if (isset ($ section ['type ' ]) && $ section ['type ' ] == "divide " ) {
@@ -790,8 +791,6 @@ function _register_setting(){
790
791
791
792
add_settings_section ($ section ['id ' ].'_section ' , $ section ['title ' ], array (&$ this , '_section_desc ' ), $ section ['id ' ].'_section_group ' );
792
793
793
- $ runUpdate = false ;
794
-
795
794
if (isset ($ section ['fields ' ])){
796
795
797
796
$ section ['fields ' ] = apply_filters ('simple-options-section- ' .$ section ['id ' ].'fields-modifier- ' .$ this ->args ['opt_name ' ], $ section ['fields ' ]);
@@ -1349,9 +1348,6 @@ function sof_object() {
1349
1348
echo '</div><!--wrap--> ' ;
1350
1349
if (true === $ this ->args ['dev_mode ' ]) {
1351
1350
echo '<br /><div class="sof-timer"> ' .get_num_queries ().' queries in ' .timer_stop (0 ).' seconds</div> ' ;
1352
- if (true === $ this ->args ['dev_mode_advanced ' ] && !empty ($ GLOBALS ['SOF_DEBUG ' ])) {
1353
- echo "<pre> " .$ GLOBALS ['SOF_DEBUG ' ]."</pre> " ;
1354
- }
1355
1351
}
1356
1352
1357
1353
}//function
@@ -1690,4 +1686,17 @@ function _ajax_callback() {
1690
1686
die ();
1691
1687
}
1692
1688
1689
+ } // class$_POST['type'];
1690
+
1691
+ print_r ($ _POST );
1692
+ die ('1 ' );
1693
+
1694
+ //Uploads
1695
+ if ($ save_type == 'upload ' )
1696
+ {
1697
+
1698
+ }
1699
+ die ();
1700
+ }
1701
+
1693
1702
} // class
0 commit comments