Plugin Directory

Changeset 963085


Ignore:
Timestamp:
08/09/2014 05:46:20 PM (12 years ago)
Author:
dtsolis
Message:

bug fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • simple-parse-push-service/trunk/simpleParsePS.php

    r963075 r963085  
    6363       
    6464        $savedPostTypes = get_option('simpar_metabox_pt');
     65        if ( count( $savedPostTypes ) ) {
     66            $savedPostTypes[] = 'post';
     67            addOrUpdateOption('simpar_metabox_pt', $savedPostTypes);
     68            $savedPostTypes = get_option('simpar_metabox_pt');
     69        }
    6570        foreach ($savedPostTypes as $postType) {
    6671            add_meta_box(
     
    344349    delete_option('simpar_hide_warning');
    345350    delete_option('simpar_discardScheduledPosts');
     351    delete_option('simpar_metabox_pt');
    346352    /*Remove any other options you may add in this plugin and clear any plugin cron jobs */
    347353}
Note: See TracChangeset for help on using the changeset viewer.