Plugin Directory

Changeset 1870735


Ignore:
Timestamp:
05/08/2018 12:21:41 PM (8 years ago)
Author:
Grandy
Message:

version 0.9.8

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

Legend:

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

    r1864164 r1870735  
    88Text Domain: gdy-modular-content
    99Domain Path: /languages/
    10 Version: 0.9.7
     10Version: 0.9.8
    1111*/
    1212
     
    1515    /************************************* VERSION ***********************************/
    1616
    17     define( 'GDYMC_PLUGIN_VERSION', '0.9.7' );
     17    define( 'GDYMC_PLUGIN_VERSION', '0.9.8' );
    1818
    1919
     
    236236        global $gdymc_object_contents;
    237237
    238         update_metadata( gdymc_object_type(), gdymc_object_id(), '_gdymc_object_contents', json_encode( $gdymc_object_contents ) );
     238        if( is_array( $gdymc_object_contents ) ) update_metadata( gdymc_object_type(), gdymc_object_id(), '_gdymc_object_contents', json_encode( $gdymc_object_contents ) );
    239239   
    240240    }
  • gdy-modular-content/trunk/includes/content.php

    r1855224 r1870735  
    345345               
    346346                $content = get_metadata( gdymc_object_type(), gdymc_object_id(), '_gdymc_object_contents', true );
    347                 $gdymc_object_contents = ( $content == '[]' ) ? array() : json_decode( $content, true );
     347                $content = json_decode( $content, true );
     348                $gdymc_object_contents = is_array( $content ) ? $content : array();
    348349
    349350            endif;
  • gdy-modular-content/trunk/readme.txt

    r1865241 r1870735  
    55Tested up to: 4.9
    66Requires PHP: 5.6
    7 Stable tag: 0.9.7
     7Stable tag: 0.9.8
    88
    99Create and edit modular content from the frontend of your site.
     
    2020
    2121== Changelog ==
     22
     23= 0.9.8 =
     24* Fixed a bug where object contents where saved incorrectly/empty on the redirect from the paramter url to the rewritten one
    2225
    2326= 0.9.7 =
Note: See TracChangeset for help on using the changeset viewer.