WordPress.org

Plugin Directory

Changeset 476217


Ignore:
Timestamp:
12/16/11 05:06:59 (2 years ago)
Author:
ericmann
Message:

Tagging 2.3.2

Location:
wp-publication-archive/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • wp-publication-archive/trunk/includes/openfile.php

    r465863 r476217  
    33    die(); 
    44     
    5 if ( strpos( $_GET['file'], (isset($_SERVER['HTTPS']) ? 'https://' : 'http://') . $_SERVER['SERVER_NAME'] ) === false ) 
     5if ( strpos( $_GET['file'], (isset($_SERVER['HTTPS']) ? 'https|' : 'http|') . $_SERVER['SERVER_NAME'] ) === false ) 
    66    die(); 
    77 
     
    99$mime = new mimetype(); 
    1010 
    11 $fPath = $_GET['file']; 
     11$fPath = str_replace('http|', 'http://', $_GET['file']); 
     12$fPath = str_replace('https|', 'https://', $fPath); 
    1213$fType = $mime->getType( $fPath ); 
    1314$fName = basename($fPath); 
  • wp-publication-archive/trunk/lib/class.publication-markup.php

    r465863 r476217  
    1515        $this->summary = get_post_meta( $this->ID, 'wpa_doc_desc', true ); 
    1616        $this->uri = get_post_meta( $this->ID, 'wpa_upload_doc', true ); 
     17 
     18        $this->uri = str_replace('http://', 'http|', $this->uri); 
     19        $this->uri = str_replace('https://', 'https|', $this->uri); 
    1720 
    1821        $tags = wp_get_post_tags( $this->ID ); 
     
    8790        $uri = apply_filters( 'wpa-uri', $this->uri, $this->ID ); 
    8891 
    89         if ( 'http://' == $uri || '' == $uri ) 
     92        if ( 'http|' == $uri || '' == $uri ) 
    9093            return ''; 
    9194 
  • wp-publication-archive/trunk/lib/class.wp-publication-archive.php

    r465863 r476217  
    215215        } 
    216216 
     217        $pubs_per_page = apply_filters( 'wpa-pubs_per_page', 2 ); 
     218 
    217219        if(isset($_GET['wpa-paged'])) { 
    218220            $paged = (int)$_GET['wpa-paged']; 
    219             $offset = 10 * ($paged - 1); 
     221            $offset = $pubs_per_page * ($paged - 1); 
    220222        } else { 
    221223            $paged = 1; 
     
    228230        $args = array( 
    229231            'offset' => $offset, 
    230             'numberposts' => 10, 
     232            'numberposts' => $pubs_per_page, 
    231233            'post_type' => 'publication', 
    232234            'orderby' => 'post_date', 
     
    237239         
    238240        $publications = get_posts( $args ); 
     241 
     242        $args['numberposts'] = -1; 
     243        $total_pubs = count( get_posts( $args ) ); 
    239244         
    240245        // Create publication list 
     
    253258         
    254259        $list .= '</div>'; 
    255          
    256         if( count( $publications ) > 10 ) { 
     260 
     261        if( $total_pubs > $pubs_per_page ) { 
    257262            $list .= '<div id="navigation">'; 
    258263 
     
    268273            } 
    269274             
    270             if($offset + 10 < wp_count_posts( 'publication' )->publish ) { 
     275            if($offset + $pubs_per_page < $total_pubs ) { 
    271276                $list .= '<div class="nav-next">'; 
    272277                $list .= '<a href="' . $next . '">'; 
     
    278283            $list .= '</div>'; 
    279284        } 
    280          
     285 
    281286        return $list; 
    282287    } 
  • wp-publication-archive/trunk/readme.txt

    r465863 r476217  
    44Tags: document management, pdf, doc, archive 
    55Requires at least: 3.0 
    6 Tested up to: 3.2 
    7 Stable tag: 2.3.1 
     6Tested up to: 3.3 
     7Stable tag: 2.3.2 
    88 
    99Allows users to upload, manage, search, and download publications, documents, and similar content (PDF, Power-Point, etc.). 
     
    5858 
    5959== Changelog == 
     60 
     61= 2.3.2 = 
     62* Fixes pagination bug 
     63* Fixes issue where some installations could not load files starting with "http://" 
    6064 
    6165= 2.3.1 = 
  • wp-publication-archive/trunk/wp-publication-archive.php

    r465863 r476217  
    44Plugin URI: http://jumping-duck.com/wordpress 
    55Description: Allows users to upload, manage, search, and download publications, documents, and similar content (PDF, Power-Point, etc.). 
    6 Version: 2.3.1 
     6Version: 2.3.2 
    77Author: Eric Mann 
    88Author URI: http://eamann.com 
Note: See TracChangeset for help on using the changeset viewer.