Changeset 726921
- Timestamp:
- 06/15/2013 01:43:23 PM (13 years ago)
- Location:
- a2z-alphabetical-archive-links
- Files:
-
- 4 added
- 3 edited
- 2 copied
-
tags/1.0 (copied) (copied from a2z-alphabetical-archive-links/trunk)
-
tags/1.0.1 (added)
-
tags/1.0.1/css (added)
-
tags/1.0.1/css/display.css (added)
-
tags/1.0.1/readme.txt (added)
-
tags/1.0/css (modified) (1 prop)
-
tags/1.0/css/display.css (copied) (copied from a2z-alphabetical-archive-links/trunk/css/display.css)
-
trunk/a2z-alphabetical-archive-links.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
a2z-alphabetical-archive-links/tags/1.0/css
-
Property
svn:ignore
set to
_notes
-
Property
svn:ignore
set to
-
a2z-alphabetical-archive-links/trunk/a2z-alphabetical-archive-links.php
r720131 r726921 79 79 80 80 function form( $instance ) { 81 $available_posts_types = get_post_types( array( 'public ' => true ) );81 $available_posts_types = get_post_types( array( 'publicly_queryable' => true ) ); 82 82 $exclude_pts = array( 'attachment' ); 83 83 $defaults = array( … … 127 127 $pt_initials = $wpdb->get_results( $querystr, ARRAY_A ); 128 128 $initial_arr = array(); 129 $base_url = get_post_type_archive_link( $instance['post_type'] ); 130 if ( ! $base_url ) { 131 $base_url = esc_url( home_url( '/' ) ); 132 } 129 133 foreach( $pt_initials AS $pt_rec ) { 130 $link = add_query_arg( 'a2zaal', $pt_rec['initial'], get_post_type_archive_link( $instance['post_type'] ));134 $link = add_query_arg( 'a2zaal', $pt_rec['initial'], $base_url ); 131 135 if ( (bool) $instance['show_counts'] ) { 132 136 $item = '<li class="count"><a href="' . $link . '">' . $pt_rec['initial'] . '<span>' . $pt_rec['counts'] . '</span>' . '</a></li>'; -
a2z-alphabetical-archive-links/trunk/readme.txt
r721698 r726921 5 5 Requires at least: 3.3 6 6 Tested up to: 3.5.1 7 Stable tag: 1.0 7 Stable tag: 1.0.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 45 45 == Changelog == 46 46 47 = 1.0.1 = 48 49 * Changed widget option for post type to include only publically queriable post types ( Pages not an option anymore ) 50 * Fixed links generated when using the post type of Post 51 47 52 = 1.0 = 48 53 Initial release … … 50 55 == Upgrade Notice == 51 56 57 = 1.0.1 = 58 59 Fixed links generated when using the post type of Post 60 52 61 = 1.0 = 53 62 Released
Note: See TracChangeset
for help on using the changeset viewer.