Options Framework - Version 1.5.2

Version Description

  • Removed update routine to remove "optionsframework" post type
Download this release

Release Info

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

Code changes from version 1.5.1 to 1.5.2

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.1
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.1' );
31
  define( 'OPTIONS_FRAMEWORK_URL', plugin_dir_url( __FILE__ ) );
32
 
33
  load_plugin_textdomain( 'optionsframework', false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
@@ -143,17 +143,6 @@ function optionsframework_init() {
143
 
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' ) ) {
3
  Plugin Name: Options Framework
4
  Plugin URI: http://www.wptheming.com
5
  Description: A framework for building theme options.
6
+ Version: 1.5.2
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.2' );
31
  define( 'OPTIONS_FRAMEWORK_URL', plugin_dir_url( __FILE__ ) );
32
 
33
  load_plugin_textdomain( 'optionsframework', false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
143
 
144
  // Load settings
145
  $optionsframework_settings = get_option( 'optionsframework' );
 
 
 
 
 
 
 
 
 
 
 
146
 
147
  // Updates the unique option id in the database if it has changed
148
  if ( function_exists( 'optionsframework_option_name' ) ) {
options-interface.php CHANGED
File without changes
options-media-uploader.php CHANGED
File without changes
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.1
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.1 =
71
 
72
  * Temporarily removed update routine
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.2
9
  License: GPLv2
10
 
11
  == Description ==
67
 
68
  == Changelog ==
69
 
70
+ = 1.5.2 =
71
+
72
+ * Removed update routine to remove "optionsframework" post type
73
+
74
  = 1.5.1 =
75
 
76
  * Temporarily removed update routine
screenshot-1.png CHANGED
File without changes
upgrade.php DELETED
@@ -1,83 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Updates Options Framework Data
5
- *
6
- * @package Options Framework
7
- * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
8
- * @since 1.5
9
- */
10
-
11
- function optionsframework_upgrade_routine() {
12
- optionsframework_update_to_version_1_5();
13
- optionsframework_update_version();
14
- }
15
-
16
- /**
17
- * Media uploader code changed in Options Framework 1.5
18
- * and no longer uses a custom post type.
19
- *
20
- * Function removes the post type 'optionsframework'
21
- * Media attached to the post type remains in the media library
22
- *
23
- * @access public
24
- * @since 1.5
25
- * @return void
26
- */
27
-
28
- function optionsframework_update_to_version_1_5() {
29
- register_post_type( 'optionsframework', array(
30
- 'labels' => array(
31
- 'name' => __( 'Theme Options Media', 'optionsframework' ),
32
- ),
33
- 'show_ui' => false,
34
- 'rewrite' => false,
35
- 'show_in_nav_menus' => false,
36
- 'public' => false
37
- ) );
38
-
39
- // Get all the optionsframework post type
40
- $query = new WP_Query( array(
41
- 'post_type' => 'optionsframework',
42
- 'numberposts' => -1,
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
- );
55
- if ( !empty( $attachments ) ) {
56
- // Unassign each of the attachments from the post
57
- foreach ( $attachments as $attachment ) {
58
- wp_update_post( array(
59
- 'ID' => $attachment->ID,
60
- 'post_parent' => 0
61
- )
62
- );
63
- }
64
- }
65
- wp_delete_post( $id, true);
66
- endwhile;
67
-
68
- wp_reset_postdata();
69
- }
70
-
71
- /**
72
- * Updates Options Framework version in the database
73
- *
74
- * @access public
75
- * @since 1.5
76
- * @return void
77
- */
78
-
79
- function optionsframework_update_version() {
80
- $optionsframework_settings = get_option( 'optionsframework' );
81
- $optionsframework_settings['version'] = OPTIONS_FRAMEWORK_VERSION;
82
- update_option( 'optionsframework', $optionsframework_settings);
83
- }