Plugin Directory

Changeset 1864164


Ignore:
Timestamp:
04/25/2018 12:56:40 PM (8 years ago)
Author:
Grandy
Message:

version 0.9.7

Location:
gdy-modular-content
Files:
72 added
3 edited

Legend:

Unmodified
Added
Removed
  • gdy-modular-content/trunk/gdy-modular-content.php

    r1855234 r1864164  
    88Text Domain: gdy-modular-content
    99Domain Path: /languages/
    10 Version: 0.9.6
     10Version: 0.9.7
    1111*/
    1212
     
    1515    /************************************* VERSION ***********************************/
    1616
    17     define( 'GDYMC_PLUGIN_VERSION', '0.9.6' );
     17    define( 'GDYMC_PLUGIN_VERSION', '0.9.7' );
    1818
    1919
  • gdy-modular-content/trunk/includes/version.php

    r1806895 r1864164  
    144144
    145145
     146    /**************************** UPGRADE TO 0.9.7 OR HIGHER ****************************/
     147
     148    if( gdymc_version_smaller_than( '0.9.7' ) ):
     149
     150        global $wpdb;
     151
     152        // Change global contents to JSON
     153
     154        $contents = $wpdb->get_results( "SELECT post_id, meta_key, meta_value FROM $wpdb->postmeta WHERE meta_key = '_gdymc_object_contents'" );
     155
     156        foreach( $contents as $content ):
     157
     158            $contentIDs = explode( ',', str_replace( array( '[', ']' ), array( '', '' ), $content->meta_value ) );
     159
     160            $encoded = json_encode( $contentIDs );
     161
     162            update_metadata( 'post', $content->post_id, $content->meta_key, $encoded );
     163
     164        endforeach;
     165
     166    endif;
     167
     168
    146169
    147170
  • gdy-modular-content/trunk/readme.txt

    r1855234 r1864164  
    55Tested up to: 4.9
    66Requires PHP: 5.6
    7 Stable tag: 0.9.6
     7Stable tag: 0.9.7
    88
    99Create and edit modular content from the frontend of your site.
     
    2020
    2121== Changelog ==
     22
     23= 0.9.7 =
     24* Update database format for object contents (outside of modules)
    2225
    2326= 0.9.6 =
    2427* Fix a remaining dump
    25 
    2628
    2729= 0.9.5 =
Note: See TracChangeset for help on using the changeset viewer.