WordPress.org

Plugin Directory

Changeset 386472


Ignore:
Timestamp:
05/18/11 23:27:26 (3 years ago)
Author:
mohanjith
Message:
  • Fixed: Wiki revision compare error
  • Fixed: Wiki create issue when no permalink is not set
Location:
wordpress-wiki-plugin/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wordpress-wiki-plugin/trunk/readme.txt

    r383285 r386472  
    9595= 1.0.5 = 
    9696* Fixed: Page formatting for Wiki in Blogsmu 
     97* Fixed: Wiki revision compare error 
     98* Fixed: Wiki create issue when no permalink is not set 
    9799 
    98100= 1.0.4 = 
  • wordpress-wiki-plugin/trunk/wiki.php

    r381470 r386472  
    66 Author: S H Mohanjith (Incsub) 
    77 WDP ID: 225 
    8  Version: 1.0.4 
     8 Version: 1.0.5 
    99 Stable tag: trunk 
    1010 Author URI: http://premium.wpmudev.org 
     
    2929     * @var     string  $current_version    Current version 
    3030     */ 
    31     var $current_version = '1.0.3'; 
     31    var $current_version = '1.0.5'; 
    3232    /** 
    3333     * @var     string  $translation_domain Translation domain 
     
    712712     
    713713    if ( !empty($redirect) ) { 
    714         wp_redirect( $redirect ); 
     714        echo '<script type="text/javascript">'. 
     715        'window.location = "'.$redirect.'";'. 
     716        '</script>'; 
    715717        exit; 
    716718    } 
     
    931933        } 
    932934    } 
     935     
     936    $seperator = (preg_match('/\?/i', get_permalink()) > 0)? '&' : '?'; 
     937     
    933938    $tabs  = '<ul class="left">'; 
    934939    $tabs .= '<li class="'.join(' ', $classes['page']).'" ><a href="'.get_permalink().'" >' . __('Page', $this->translation_domain) . '</a></li>'; 
    935940    if (comments_open()) { 
    936         $tabs .= '<li class="'.join(' ', $classes['discussion']).'" ><a href="'.get_permalink().'?action=discussion" >' . __('Discussion', $this->translation_domain) . '</a></li>'; 
    937     } 
    938     $tabs .= '<li class="'.join(' ', $classes['history']).'" ><a href="'.get_permalink().'?action=history" >' . __('History', $this->translation_domain) . '</a></li>'; 
     941        $tabs .= '<li class="'.join(' ', $classes['discussion']).'" ><a href="'.get_permalink().$seperator.'action=discussion" >' . __('Discussion', $this->translation_domain) . '</a></li>'; 
     942    } 
     943    $tabs .= '<li class="'.join(' ', $classes['history']).'" ><a href="'.get_permalink().$seperator.'action=history" >' . __('History', $this->translation_domain) . '</a></li>'; 
    939944    $tabs .= '</ul>'; 
    940945     
     
    943948    if (current_user_can($post_type_object->cap->edit_post, $post->ID)) { 
    944949        $tabs .= '<ul class="right">'; 
    945         $tabs .= '<li class="'.join(' ', $classes['edit']).'" ><a href="'.get_permalink().'?action=edit" >' . __('Edit', $this->translation_domain) . '</a></li>'; 
     950        $tabs .= '<li class="'.join(' ', $classes['edit']).'" ><a href="'.get_permalink().$seperator.'action=edit" >' . __('Edit', $this->translation_domain) . '</a></li>'; 
    946951        if (is_user_logged_in()) { 
    947952        $tabs .= '<li class="'.join(' ', $classes['advanced_edit']).'" ><a href="'.get_edit_post_link().'" >' . __('Advanced', $this->translation_domain) . '</a></li>'; 
    948953        } 
    949         $tabs .= '<li class="'.join(' ', $classes['create']).'"><a href="'.get_permalink().'?action=edit&eaction=create">'.__('Create new', $this->translation_domain).'</a></li>'; 
     954        $tabs .= '<li class="'.join(' ', $classes['create']).'"><a href="'.get_permalink().$seperator.'action=edit&eaction=create">'.__('Create new', $this->translation_domain).'</a></li>'; 
    950955        $tabs .= '</ul>'; 
    951956    } 
Note: See TracChangeset for help on using the changeset viewer.