@@ -26,7 +26,7 @@ class Simple_Options {
2626 *
2727 * @const string
2828 */
29- const VERSION = '0.4.0 ' ;
29+ const VERSION = '0.4.1 ' ;
3030
3131 /**
3232 * Unique identifier for your plugin.
@@ -774,6 +774,7 @@ function _register_setting(){
774774
775775
776776 register_setting ($ this ->args ['opt_name ' ].'_group ' , $ this ->args ['opt_name ' ], array (&$ this ,'_validate_options ' ));
777+ $ runUpdate = false ;
777778 foreach ($ this ->sections as $ k => $ section ){
778779
779780 if (isset ($ section ['type ' ]) && $ section ['type ' ] == "divide " ) {
@@ -790,8 +791,6 @@ function _register_setting(){
790791
791792 add_settings_section ($ section ['id ' ].'_section ' , $ section ['title ' ], array (&$ this , '_section_desc ' ), $ section ['id ' ].'_section_group ' );
792793
793- $ runUpdate = false ;
794-
795794 if (isset ($ section ['fields ' ])){
796795
797796 $ section ['fields ' ] = apply_filters ('simple-options-section- ' .$ section ['id ' ].'fields-modifier- ' .$ this ->args ['opt_name ' ], $ section ['fields ' ]);
@@ -1349,9 +1348,6 @@ function sof_object() {
13491348 echo '</div><!--wrap--> ' ;
13501349 if (true === $ this ->args ['dev_mode ' ]) {
13511350 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- }
13551351 }
13561352
13571353 }//function
@@ -1690,4 +1686,17 @@ function _ajax_callback() {
16901686 die ();
16911687 }
16921688
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+
16931702} // class
0 commit comments