Plugin Directory

Changeset 2075357


Ignore:
Timestamp:
04/26/2019 12:24:25 PM (7 years ago)
Author:
MaartenM
Message:

Fix : Function 'wdc\sort_version' not found.
Fix : Updater - remove dump output

Location:
widget-display-conditions/trunk/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • widget-display-conditions/trunk/includes/common.php

    r2075315 r2075357  
    5757
    5858    return ( $a['order'] < $b['order'] ) ? -1 : 1;
     59}
     60
     61/**
     62 * Sort version
     63 *
     64 * @param mixed $a
     65 * @param mixed $b
     66 *
     67 * @return int
     68 */
     69function sort_version( $a, $b )
     70{
     71    if ( is_object( $a ) ) $a = get_object_vars( $a );
     72    if ( is_object( $b ) ) $b = get_object_vars( $b );
     73
     74    return version_compare( $a['version'], $b['version'] );
    5975}
    6076
  • widget-display-conditions/trunk/includes/updater.php

    r2075315 r2075357  
    140140                <?php wp_nonce_field( 'update', WDC_NONCE_NAME ); ?>
    141141
    142                 <pre><?php print_r( $this->get_applicable_tasks() ); ?></pre>
    143 
    144142                <p><strong><?php _e( 'A database update is required.', 'wdc' ); ?></strong></p>
    145143                <p><?php _e( 'Make sure to make a backup before updating.', 'wdc' ); ?></p>
Note: See TracChangeset for help on using the changeset viewer.