Options Framework - Version 1.5.1

Version Description

  • Temporarily removed update routine
Download this release

Release Info

Developer downstairsdev
Plugin Icon wp plugin Options Framework
Version 1.5.1
Comparing to
See all releases

Code changes from version 1.5 to 1.5.1

css/color-picker.min.css CHANGED
File without changes
images/ico-delete.png CHANGED
File without changes
js/color-picker.min.js CHANGED
File without changes
js/iris.min.js CHANGED
File without changes
js/media-uploader.js CHANGED
File without changes
lang/options-framework-hu_HU.po CHANGED
File without changes
lang/optionsframework-es_ES.mo CHANGED
File without changes
lang/optionsframework-es_ES.po CHANGED
File without changes
lang/optionsframework-it_IT.mo CHANGED
File without changes
lang/optionsframework-it_IT.po CHANGED
File without changes
lang/optionsframework-pt_BR.mo CHANGED
File without changes
lang/optionsframework-pt_BR.po CHANGED
File without changes
lang/optionsframework-ru_RU.mo CHANGED
File without changes
lang/optionsframework-ru_RU.po CHANGED
File without changes
lang/optionsframework-sv_SE.mo CHANGED
File without changes
lang/optionsframework-sv_SE.po CHANGED
File without changes
lang/optionsframework.pot CHANGED
File without changes
options-framework.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Options Framework
4
  Plugin URI: http://www.wptheming.com
5
  Description: A framework for building theme options.
6
- Version: 1.5
7
  Author: Devin Price
8
  Author URI: http://www.wptheming.com
9
  License: GPLv2
@@ -27,7 +27,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27
 
28
  /* Basic plugin definitions */
29
 
30
- define( 'OPTIONS_FRAMEWORK_VERSION', '1.5' );
31
  define( 'OPTIONS_FRAMEWORK_URL', plugin_dir_url( __FILE__ ) );
32
 
33
  load_plugin_textdomain( 'optionsframework', false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
@@ -144,10 +144,16 @@ function optionsframework_init() {
144
  // Load settings
145
  $optionsframework_settings = get_option( 'optionsframework' );
146
 
 
 
 
 
 
147
  if ( $optionsframework_settings && !isset($optionsframework_settings['version']) ) {
148
  require_once dirname( __FILE__ ) . '/upgrade.php';
149
  optionsframework_upgrade_routine();
150
  }
 
151
 
152
  // Updates the unique option id in the database if it has changed
153
  if ( function_exists( 'optionsframework_option_name' ) ) {
@@ -256,7 +262,6 @@ if ( !function_exists( 'optionsframework_add_page' ) ) {
256
 
257
  // Load the required CSS and javscript
258
  add_action( 'admin_enqueue_scripts', 'optionsframework_load_scripts');
259
- add_action( 'admin_enqueue_scripts', 'optionsframework_media_scripts');
260
  add_action( 'admin_print_styles-' . $of_page, 'optionsframework_load_styles' );
261
  }
262
 
3
  Plugin Name: Options Framework
4
  Plugin URI: http://www.wptheming.com
5
  Description: A framework for building theme options.
6
+ Version: 1.5.1
7
  Author: Devin Price
8
  Author URI: http://www.wptheming.com
9
  License: GPLv2
27
 
28
  /* Basic plugin definitions */
29
 
30
+ define( 'OPTIONS_FRAMEWORK_VERSION', '1.5.1' );
31
  define( 'OPTIONS_FRAMEWORK_URL', plugin_dir_url( __FILE__ ) );
32
 
33
  load_plugin_textdomain( 'optionsframework', false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
144
  // Load settings
145
  $optionsframework_settings = get_option( 'optionsframework' );
146
 
147
+ /* Temporarily commenting out upgrade routine since users
148
+ * are reporting issues with it
149
+ */
150
+
151
+ /*
152
  if ( $optionsframework_settings && !isset($optionsframework_settings['version']) ) {
153
  require_once dirname( __FILE__ ) . '/upgrade.php';
154
  optionsframework_upgrade_routine();
155
  }
156
+ */
157
 
158
  // Updates the unique option id in the database if it has changed
159
  if ( function_exists( 'optionsframework_option_name' ) ) {
262
 
263
  // Load the required CSS and javscript
264
  add_action( 'admin_enqueue_scripts', 'optionsframework_load_scripts');
 
265
  add_action( 'admin_print_styles-' . $of_page, 'optionsframework_load_styles' );
266
  }
267
 
options-interface.php CHANGED
File without changes
options-media-uploader.php CHANGED
@@ -91,8 +91,6 @@ endif;
91
 
92
  if ( ! function_exists( 'optionsframework_media_scripts' ) ) :
93
 
94
- add_action( 'admin_enqueue_scripts', 'optionsframework_media_scripts' );
95
-
96
  function optionsframework_media_scripts() {
97
  if ( function_exists( 'wp_enqueue_media' ) )
98
  wp_enqueue_media();
@@ -104,4 +102,6 @@ function optionsframework_media_scripts() {
104
  ) );
105
  }
106
 
 
 
107
  endif;
91
 
92
  if ( ! function_exists( 'optionsframework_media_scripts' ) ) :
93
 
 
 
94
  function optionsframework_media_scripts() {
95
  if ( function_exists( 'wp_enqueue_media' ) )
96
  wp_enqueue_media();
102
  ) );
103
  }
104
 
105
+ add_action( 'admin_enqueue_scripts', 'optionsframework_media_scripts' );
106
+
107
  endif;
options-sanitize.php CHANGED
File without changes
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: options, theme options
5
  Donate link: http://bit.ly/options-donate-2
6
  Requires at least: 3.3
7
  Tested up to: 3.5
8
- Stable tag: 1.5
9
  License: GPLv2
10
 
11
  == Description ==
@@ -67,6 +67,10 @@ You can also watch the video screencast I have at [http://wptheming.com/options-
67
 
68
  == Changelog ==
69
 
 
 
 
 
70
  = 1.5 =
71
 
72
  * Updated width of text input
5
  Donate link: http://bit.ly/options-donate-2
6
  Requires at least: 3.3
7
  Tested up to: 3.5
8
+ Stable tag: 1.5.1
9
  License: GPLv2
10
 
11
  == Description ==
67
 
68
  == Changelog ==
69
 
70
+ = 1.5.1 =
71
+
72
+ * Temporarily removed update routine
73
+
74
  = 1.5 =
75
 
76
  * Updated width of text input
screenshot-1.png CHANGED
File without changes
upgrade.php CHANGED
@@ -43,9 +43,12 @@ function optionsframework_update_to_version_1_5() {
43
  ) );
44
 
45
  while ( $query->have_posts() ) :
 
46
  $query->the_post();
 
 
47
  $attachments = get_children( array(
48
- 'post_parent' => the_ID(),
49
  'post_type' => 'attachment'
50
  )
51
  );
@@ -59,7 +62,7 @@ function optionsframework_update_to_version_1_5() {
59
  );
60
  }
61
  }
62
- wp_delete_post( the_ID(), true);
63
  endwhile;
64
 
65
  wp_reset_postdata();
43
  ) );
44
 
45
  while ( $query->have_posts() ) :
46
+
47
  $query->the_post();
48
+ $id = get_the_ID();
49
+ echo $id;
50
  $attachments = get_children( array(
51
+ 'post_parent' => $id,
52
  'post_type' => 'attachment'
53
  )
54
  );
62
  );
63
  }
64
  }
65
+ wp_delete_post( $id, true);
66
  endwhile;
67
 
68
  wp_reset_postdata();