Plugin Directory

Changeset 466105


Ignore:
Timestamp:
11/22/2011 05:35:01 PM (14 years ago)
Author:
iamntz
Message:

2.0.8

Location:
profitshare/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • profitshare/trunk

    • Property svn:ignore set to
      profitshare.sublime-project
      profitshare.sublime-workspace
  • profitshare/trunk/index.php

    r459958 r466105  
    2828
    2929    $old_profithsare = get_option('profitshare_user'); // upgrade de la versiunea 1
    30     $this->default_profitshare = ( !empty( $old_profithsare ) ? $old_profithsare : "d4df812647a68d27a5cc35e37c2fbf2f" );
     30
     31    $this->old_profithsare = !empty( $old_profithsare ) ? $old_profithsare : null;
     32    $this->default_profitshare = "d4df812647a68d27a5cc35e37c2fbf2f";
    3133
    3234   
     
    102104
    103105  public function admin_init(){
    104 
    105106    $custom_rewrite = plugin_basename( __FILE__ ) . '?ntz_do=redirect&url_id=$1&url_name=$2';
    106     add_rewrite_rule( ( !empty( $this->user_settings['short_url_base'] ) ? $this->user_settings['short_url_base'] : $this->default_url_base ) .'/([0-9]*)/?([a-zA-Z0-9\-]*)', $custom_rewrite, 'top' );
     107    if( $this->user_settings['short_links'] ){
     108      add_rewrite_rule( ( !empty( $this->user_settings['short_url_base'] ) ? $this->user_settings['short_url_base'] : $this->default_url_base ) .'/([0-9]*)/?([a-zA-Z0-9\-]*)', $custom_rewrite, 'top' );
     109    }else {
     110      flush_rewrite_rules();
     111    }
    107112    register_setting( 'ntz_referral_options', 'ntz_referral_settings', array( &$this, 'save_settings' ) );
    108113  } // admin_init
  • profitshare/trunk/readme.txt

    r459958 r466105  
    1616
    1717== Changelog ==
     18= 2.0.8 =
     19Am rezolvat un bug ce afișa codul ca fiind invalid în cazul unui upgrade de la versiunea 1.
     20La dezactivarea opțiunii de scurtare a link-urilor se șterg regulile din `.htaccess`.
     21
    1822= 2.0.7 =
    1923Am rezolvat un bug mic ce făcea quick profitshare să fie afișat tot timpul
Note: See TracChangeset for help on using the changeset viewer.