Changeset 566388
- Timestamp:
- 07/02/2012 11:45:50 AM (14 years ago)
- Location:
- 3pagination
- Files:
-
- 4 added
- 2 edited
- 6 copied
-
tags/1.3b (added)
-
tags/1.3b/3pagination.php (copied) (copied from 3pagination/trunk/3pagination.php)
-
tags/1.3b/README (copied) (copied from 3pagination/trunk/README)
-
tags/1.3b/class.settings.php (copied) (copied from 3pagination/trunk/class.settings.php)
-
tags/1.3b/examples (added)
-
tags/1.3b/examples/style.css (copied) (copied from 3pagination/trunk/examples/style.css)
-
tags/1.3b/js (added)
-
tags/1.3b/js/3pagination.js (copied) (copied from 3pagination/trunk/js/3pagination.js)
-
tags/1.3b/languages (added)
-
tags/1.3b/readme.txt (copied) (copied from 3pagination/trunk/readme.txt)
-
trunk/3pagination.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
3pagination/trunk/3pagination.php
r566153 r566388 16 16 17 17 // Upon deactivation 18 register_ deactivation_hook( __FILE__, array( 'threepagination', 'deactivate' ) );18 register_uninstall_hook( __FILE__, array( 'threepagination', 'uninstall' ) ); 19 19 } 20 20 … … 118 118 /** 119 119 * Set frontend vars 120 * 121 * @TODO: Pages, Custom post types? 120 122 * 121 123 * @return type … … 175 177 * @since 0.1a 176 178 */ 177 public static function get( $pretty = TRUE, $max_num_pages = FALSE, $labels = TRUE, $css = 'classic' ) { 178 179 global $wp_query, $wp; 180 179 public static function get( $pretty = TRUE, $max_num_pages = FALSE, $labels = TRUE, $css = 'classic', $wp_query = FALSE ) { 180 181 global $wp; 182 183 // Set current query object 184 if ( FALSE == $wp_query || ! is_object( $wp_query ) ) 185 global $wp_query; 186 181 187 // Get global settings 182 188 $settings = get_option( '3pagination_settings' ); … … 303 309 * @since 0.1a 304 310 */ 305 public static function draw( $pretty = TRUE, $max_num_pages = FALSE, $labels = TRUE, $css = 'classic' ) {306 307 echo self::get( $pretty, $max_num_pages, $labels, $css );311 public static function draw( $pretty = TRUE, $max_num_pages = FALSE, $labels = TRUE, $css = 'classic', $wp_query = FALSE ) { 312 313 echo self::get( $pretty, $max_num_pages, $labels, $css, $wp_query ); 308 314 } 309 315 … … 381 387 * @since 1.3b 382 388 */ 383 public static function deactivate() {389 public static function uninstall() { 384 390 385 391 delete_option( '3pagination_settings' ); -
3pagination/trunk/readme.txt
r566157 r566388 4 4 Requires at least: 3.3.2 5 5 Tested up to: 3.4.1 6 Stable tag: 1.3 b6 Stable tag: 1.3.1b 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 19 19 <li>Modify labels and CSS and preview pagination in backend before using it in your frontend pages!</li> 20 20 <li>Both default and pretty permalink structure are supported</li> 21 <li>So far, this code has been tested on index, archive, c ategory and search pages of some of the most popular WordPress themes.</li>21 <li>So far, this code has been tested on index, archive, custom post type archive, category and search pages of some of the most popular WordPress themes.</li> 22 22 </ul> 23 23 Please leave feedback, bug reports or comments at https://github.com/paddelboot/3pagination/issues … … 96 96 - Fixed bug with pagination link; 97 97 - Contextual help tab 98 - Fixed bug with default URLs pagination links 98 - Fixed bug with default URLs pagination link 99 100 = 1.3.1b = 101 - New function parameter $wp_query: support for custom query object 99 102 100 103 == A brief Markdown Example ==
Note: See TracChangeset
for help on using the changeset viewer.