Plugin Directory

Changeset 659578


Ignore:
Timestamp:
01/27/2013 07:54:18 AM (13 years ago)
Author:
Parakoos
Message:

2.7: Fixed an error where upgrading from v2.5 would break the image wall.

Location:
image-wall/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • image-wall/trunk/image-wall.php

    r659491 r659578  
    44    Plugin URI: http://www.themodernnomad.com/image-wall-plugin/#utm_campaign=Image_Wall&utm_source=wordpress&utm_medium=website&utm_content=plugin_link
    55    Description: Browse posts/pages by their images, displayed randomly on an infinitely scrollable page. The images link back to the posts where they are attached.
    6     Version: 2.6
     6    Version: 2.7
    77    Author: Gustav Andersson
    88    Author URI: http://www.themodernnomad.com/about/#utm_campaign=Image_Wall&utm_source=wordpress&utm_medium=website&utm_content=author_link
     
    4646    wp_schedule_single_event(time(), 'iw_attachment_hash_regenerate');
    4747   
     48    tmn_iw_set_default_variables();
     49}
     50
     51function tmn_iw_set_default_variables()
     52{   
    4853    // Set up our initial variables.
    49     update_option( "image_wall_regen", "tmn_iw_never" );
    50     update_option( "image_wall_regen_method", "hashing" );
    51     update_option( "image_wall_regen_salt", rand(1, 1000) );
     54    add_option( "image_wall_regen", "tmn_iw_never" );
     55    add_option( "image_wall_regen_method", "hashing" );
     56    add_option( "image_wall_regen_salt", rand(1, 1000) );
    5257}
    5358
     
    132137function image_wall_options() {
    133138    if ( !current_user_can( 'manage_options' ) ) {  wp_die( __( 'You do not have sufficient permissions to access this page.' ) );}
     139    tmn_iw_set_default_variables();
    134140?>
     141
     142
    135143    <div class="wrap" style="max-width: 730px;">
    136144        <style>
     
    542550    $expect_more_posts = true;
    543551
     552    tmn_iw_set_default_variables();
     553   
    544554    $iw_image_wall_regen_method = get_option( "image_wall_regen_method" );
    545555
  • image-wall/trunk/readme.txt

    r659491 r659578  
    44Requires at least: 3.5
    55Tested up to: 3.5.1
    6 Stable tag: 2.6
     6Stable tag: 2.7
    77Donate link: http://www.themodernnomad.com/#utm_campaign=Image_Wall&utm_source=wordpress&utm_medium=website&utm_content=donation
    88License: GPLv2 or later
     
    7979= 2.6 =
    8080* Overriding max-height CSS styles from parent stylesheets wich could make the images seem very short.
     81
     82= 2.7 =
     83* Fixed an error where upgrading from v2.5 would break the image wall.
Note: See TracChangeset for help on using the changeset viewer.