Plugin Directory

Changeset 502221


Ignore:
Timestamp:
02/08/2012 01:54:34 PM (14 years ago)
Author:
oschina
Message:

update to 1.0.3

Location:
nextapp/trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • nextapp/trunk/index.php

    r482710 r502221  
    66Plugin Name: NextApp
    77Description: NextApp interface is blogging web site to provide mobile phone client used to access the blog classification, the article and comment data interface.
    8 Version: 1.0.2
     8Version: 1.0.3
    99Author: Daye
    1010License: GPLv2 or later
     
    2323*/
    2424
    25 define('NEXTAPP_VERSION', '1.0.2');
     25define('NEXTAPP_VERSION', '1.0.3');
    2626define('NEXTAPP_PATH', dirname(__FILE__));
    2727
  • nextapp/trunk/modules/Post.php

    r482710 r502221  
    99    public function detailAction()
    1010    {
     11        global $post, $wp_query;
     12        $wp_query->is_single = true;
     13       
    1114        $postId = (int)$this->getParam('post', 0);
    1215        $post = get_post($postId);
     
    5255        $node->pubDate = $post->post_date;
    5356        $node->commentCount = $post->comment_count;
     57       
     58        # previous and next
     59        if ($previons = get_previous_post()) {
     60            $node->previous = $previons->ID;
     61        }
     62        if ($next = get_next_post()) {
     63            $node->next = $next->ID;
     64        }
     65        $wp_query->is_single = false;
    5466       
    5567        if (!empty($tags)) {
  • nextapp/trunk/readme.txt

    r482710 r502221  
    44Requires at least: 2.7
    55Tested up to: 3.3
    6 Stable tag: 1.0.2
     6Stable tag: 1.0.3
    77
    88NextApp wordpress plugin provides an interface for mobile client to access the blog categories, articles and comments.
     
    2525== Changelog ==
    2626
     27= 1.0.3 =
     28* Add previouse and next post support
     29* Add get pages support
     30
    2731= 1.0.2 =
    2832* Add support to WordPress 2.7.
Note: See TracChangeset for help on using the changeset viewer.