Skip to content

Commit b46c7db

Browse files
committed
Version push again.
1 parent 434d8c4 commit b46c7db

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

class-simple-options.php

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

simple-options.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* Plugin Name: Simple Options Framework
1616
* Plugin URI: https://github.com/SimpleRain/SimpleOptions
1717
* Description: A simple wordpress options framework for developers.
18-
* Version: 0.4.0
18+
* Version: 0.4.1
1919
* Author: Dovy Paukstys
2020
* Author URI: http://simplerain.com
2121
* Text Domain: simple-options
@@ -50,13 +50,11 @@
5050
define('SOF_OPTIONS_URL', site_url(str_replace( $fslashed_abs, '', $fslashed_dir )));
5151
}
5252

53-
global $Simple_Options;
54-
$Simple_Options = Simple_Options::get_instance();
55-
5653
//require_once( plugin_dir_path( __FILE__ ) . 'options-init.php' );
5754

5855
// Debugging activation errors
5956
add_action('activated_plugin','save_error');
6057
function save_error(){
6158
file_put_contents(dirname(__FILE__). '/error_activation.html', ob_get_contents());
59+
}contents(dirname(__FILE__). '/error_activation.html', ob_get_contents());
6260
}

0 commit comments

Comments
 (0)