Plugin Directory

Changeset 1189898


Ignore:
Timestamp:
06/29/2015 10:55:42 PM (11 years ago)
Author:
Clear_Code
Message:

Update to 3.1

Location:
include
Files:
2 edited
3 copied

Legend:

Unmodified
Added
Removed
  • include/tags/3.1/include.php

    r1189563 r1189898  
    9393    if($include_included[$id] === true)  return $r; //return $r . var_export($include_included, true);                              // If page is already included, don't include it again
    9494    $include_included[$id] = true;                                      // Mark the page as included
    95     $op = clone $wp_query;                                          // Back up the $wp_query object
     95    $op = clone $wp_query;                                              // Back up the $wp_query object
    9696
    9797    $post_type = $wpdb->get_var("SELECT post_type FROM {$wpdb->posts} WHERE ID = '{$id}'");
    9898
    9999    if ($post_type == 'page') query_posts(array('page_id' => $id));
    100     else if ($post_type == 'post') query_posts(array('p' => $id));
    101     else return $r;
     100    else query_posts(array('p' => $id));
    102101
    103102    the_post();
  • include/tags/3.1/readme.txt

    r1189563 r1189898  
    8989== Changelog ==
    9090
     91= 3.1 =
     92* Fixed bug: Lack of support for custom post types.
     93
    9194= 3.0 =
    9295* Fixed bug: Not working for posts.  Thanks to stovesy for the code.
     
    137140== Upgrade Notice ==
    138141
     142= 3.1 =
     143* Fixed bug: Lack of support for custom post types.
     144
    139145= 3.0 =
    140146* Now works with Posts again.
  • include/trunk/include.php

    r1189563 r1189898  
    9393    if($include_included[$id] === true)  return $r; //return $r . var_export($include_included, true);                              // If page is already included, don't include it again
    9494    $include_included[$id] = true;                                      // Mark the page as included
    95     $op = clone $wp_query;                                          // Back up the $wp_query object
     95    $op = clone $wp_query;                                              // Back up the $wp_query object
    9696
    9797    $post_type = $wpdb->get_var("SELECT post_type FROM {$wpdb->posts} WHERE ID = '{$id}'");
    9898
    9999    if ($post_type == 'page') query_posts(array('page_id' => $id));
    100     else if ($post_type == 'post') query_posts(array('p' => $id));
    101     else return $r;
     100    else query_posts(array('p' => $id));
    102101
    103102    the_post();
  • include/trunk/readme.txt

    r1189563 r1189898  
    8989== Changelog ==
    9090
     91= 3.1 =
     92* Fixed bug: Lack of support for custom post types.
     93
    9194= 3.0 =
    9295* Fixed bug: Not working for posts.  Thanks to stovesy for the code.
     
    137140== Upgrade Notice ==
    138141
     142= 3.1 =
     143* Fixed bug: Lack of support for custom post types.
     144
    139145= 3.0 =
    140146* Now works with Posts again.
Note: See TracChangeset for help on using the changeset viewer.