Plugin Directory

Changeset 1599584


Ignore:
Timestamp:
02/20/2017 09:46:17 AM (9 years ago)
Author:
DeusTron
Message:

update

Location:
mpcx-accordion/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mpcx-accordion/trunk/mpcx-accordion.php

    r1599568 r1599584  
    3232);
    3333
    34 /*
    3534add_action(
    3635    'upgrader_process_complete',
    3736    function ( $object, $options ) {
    3837        if ( $options['action'] === 'update' && $options['type'] === 'plugin' ) {
    39             if ( in_array( plugin_basename( __FILE__ ), $options['plugins'] ) === true ) {
    40                 include plugin_dir_path( __FILE__ ) . 'update.php';
    41             }
     38            include plugin_dir_path( __FILE__ ) . 'update.php';
    4239        }
    4340    },
     
    4542    2
    4643);
    47 */
    48 
    49 include plugin_dir_path( __FILE__ ) . 'update.php';
    5044
    5145if ( is_admin() ) {
  • mpcx-accordion/trunk/update.php

    r1599574 r1599584  
    77
    88$data = get_option( 'mpcx_accordion' );
    9 if ( is_string($data) === true ) {
     9if ( is_string( $data ) === true ) {
    1010    $data = json_decode( $data, true );
    1111}
    12 if ( is_array($data) === false ) {
     12if ( is_array( $data ) === false ) {
    1313    $data = get_option( 'mpcx_accordion' );
    1414}
    15 if ( is_array($data) === false ) {
     15if ( is_array( $data ) === false ) {
    1616    $data = array( 'version' => MPCX_ACCORDION_VERSION );
    1717}
Note: See TracChangeset for help on using the changeset viewer.