Changeset 1189898
- Timestamp:
- 06/29/2015 10:55:42 PM (11 years ago)
- Location:
- include
- Files:
-
- 2 edited
- 3 copied
-
tags/3.1 (copied) (copied from include/trunk)
-
tags/3.1/include.php (copied) (copied from include/trunk/include.php) (1 diff)
-
tags/3.1/readme.txt (copied) (copied from include/trunk/readme.txt) (2 diffs)
-
trunk/include.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
include/tags/3.1/include.php
r1189563 r1189898 93 93 if($include_included[$id] === true) return $r; //return $r . var_export($include_included, true); // If page is already included, don't include it again 94 94 $include_included[$id] = true; // Mark the page as included 95 $op = clone $wp_query; // Back up the $wp_query object95 $op = clone $wp_query; // Back up the $wp_query object 96 96 97 97 $post_type = $wpdb->get_var("SELECT post_type FROM {$wpdb->posts} WHERE ID = '{$id}'"); 98 98 99 99 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)); 102 101 103 102 the_post(); -
include/tags/3.1/readme.txt
r1189563 r1189898 89 89 == Changelog == 90 90 91 = 3.1 = 92 * Fixed bug: Lack of support for custom post types. 93 91 94 = 3.0 = 92 95 * Fixed bug: Not working for posts. Thanks to stovesy for the code. … … 137 140 == Upgrade Notice == 138 141 142 = 3.1 = 143 * Fixed bug: Lack of support for custom post types. 144 139 145 = 3.0 = 140 146 * Now works with Posts again. -
include/trunk/include.php
r1189563 r1189898 93 93 if($include_included[$id] === true) return $r; //return $r . var_export($include_included, true); // If page is already included, don't include it again 94 94 $include_included[$id] = true; // Mark the page as included 95 $op = clone $wp_query; // Back up the $wp_query object95 $op = clone $wp_query; // Back up the $wp_query object 96 96 97 97 $post_type = $wpdb->get_var("SELECT post_type FROM {$wpdb->posts} WHERE ID = '{$id}'"); 98 98 99 99 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)); 102 101 103 102 the_post(); -
include/trunk/readme.txt
r1189563 r1189898 89 89 == Changelog == 90 90 91 = 3.1 = 92 * Fixed bug: Lack of support for custom post types. 93 91 94 = 3.0 = 92 95 * Fixed bug: Not working for posts. Thanks to stovesy for the code. … … 137 140 == Upgrade Notice == 138 141 142 = 3.1 = 143 * Fixed bug: Lack of support for custom post types. 144 139 145 = 3.0 = 140 146 * Now works with Posts again.
Note: See TracChangeset
for help on using the changeset viewer.