Skip to content

Commit babb969

Browse files
authored
v0.4.1 PR #105 from v0.4 to master
2 parents 64f128b + cb4f8f1 commit babb969

File tree

6 files changed

+51
-32
lines changed

6 files changed

+51
-32
lines changed

README.md

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
11
Post List builder with highly customizable filter & custom designs. Whether it's displaying Recent Posts, Related Posts, Dynamic Posts, or a list of posts in general.
22

33
== Description ==
4-
[apl getting started]: https://support.advancedpostlist.com/getting-started/
5-
"Getting Started w/ APL"
6-
[apl qa]: https://support.advancedpostlist.com/qa/
7-
"Questions & Answers"
8-
[apl docs]: https://support.advancedpostlist.com/documentation/
9-
"APL Documentation"
10-
[apl shortcodes]: https://support.advancedpostlist.com/doc/internal-shortcodes/
11-
"List of Internal Shortcodes"
12-
[wp apl support]: https://wordpress.org/support/plugin/advanced-post-list
13-
"WordPress.org - Support for APL"
14-
[github issues]: https://github.com/Advanced-Post-List/advanced-post-list/issues
15-
"Report an Issue"
16-
[github wiki]: https://github.com/Advanced-Post-List/advanced-post-list/wiki
17-
"Learn or Contribute to APL"
18-
194
This tool functions much like a Post List builder to give Admins the most amount of control over managing content to display. Developed with Web Designers & Developers in mind, makes this a highly customizable tool to have around. However, there is a sharp learning curve for most.
205

216
You must know:
@@ -72,9 +57,37 @@ APL is open to development requests and welcomes those willing to report on any
7257

7358
Currently, information can be found in 2 different locations. This is due to recent changes, and is only temporary.
7459

60+
* [Getting Started](https://support.advancedpostlist.com/getting-started/)
61+
* [Documentation](https://support.advancedpostlist.com/documentation/)
62+
* [Internal Shortcodes](https://support.advancedpostlist.com/doc/internal-shortcodes/)
63+
* [GitHub Wiki](https://github.com/Advanced-Post-List/advanced-post-list/wiki)
64+
65+
Questions/Bug Report submit thread / ticket at [WordPress](https://wordpress.org/support/plugin/advanced-post-list) or [GitHub Issue / Tickets](https://github.com/Advanced-Post-List/advanced-post-list/issues).
66+
67+
----------------------
68+
7569
* [Getting Started][apl getting started]
7670
* [Documentation][apl docs]
7771
* [Internal Shortcodes][apl shortcodes]
7872
* [GitHub Wiki][github wiki]
7973

80-
Questions/Bug Report submit thread / ticket at [WordPress][wp apl support] or [GitHub Issue / Tickets][github issues].
74+
[apl getting started]: https://support.advancedpostlist.com/getting-started/
75+
"Getting Started w/ APL"
76+
77+
[apl qa]: https://support.advancedpostlist.com/qa/
78+
"Questions & Answers"
79+
80+
[apl docs]: https://support.advancedpostlist.com/documentation/
81+
"APL Documentation"
82+
83+
[apl shortcodes]: https://support.advancedpostlist.com/doc/internal-shortcodes/
84+
"List of Internal Shortcodes"
85+
86+
[wp apl support]: https://wordpress.org/support/plugin/advanced-post-list
87+
"WordPress.org - Support for APL"
88+
89+
[github issues]: https://github.com/Advanced-Post-List/advanced-post-list/issues
90+
"Report an Issue"
91+
92+
[github wiki]: https://github.com/Advanced-Post-List/advanced-post-list/wiki
93+
"Learn or Contribute to APL"

admin/post-list-meta-box-filter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ function apl_selected_post_status( $post_status, $apl_post_status ) {
621621
<?php if ( $apl_authors ) : ?>
622622
<optgroup label="<?php echo esc_attr( $v_role_name ); ?>">
623623
<?php foreach ( $apl_authors as $k2_index => $v2_user ) : ?>
624-
<option <?php echo ( in_array( $v2_user->data->ID , $apl_post_list->author__in, true ) ) ? 'selected="selected"' : ''; ?> value="<?php echo esc_attr( $v2_user->data->ID ); ?>" ><?php echo esc_html( $v2_user->data->display_name ); ?></option>
624+
<option <?php echo ( in_array( $v2_user->ID , $apl_post_list->author__in, true ) ) ? 'selected="selected"' : ''; ?> value="<?php echo esc_attr( $v2_user->data->ID ); ?>" ><?php echo esc_html( $v2_user->data->display_name ); ?></option>
625625
<?php endforeach; ?>
626626
</optgroup>
627627
<?php endif; ?>

advanced-post-list.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: Advanced Post List
44
Plugin URI: http://wordpress.org/plugins/advanced-post-list/
55
Description: Create highly customizable post lists to display to your users and visitors. Provides a wide array of static settings and dynamic features. Also supports Custom Post Types and Taxonomies.
6-
Version: 0.4.0
6+
Version: 0.4.1
77
Author: EkoJR
88
Author URI: http://ekojr.com
99
License: GPLv2

includes/class/class-apl-query.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,8 @@ private function query_arg_consolidate( $arg_arr ) {
328328
for ( $j = $i + 1; $j < $query_count; $j++ ) {
329329
// IF there is a post_parents; which would conflict.
330330
// IF both query_arg's tax_query match.
331-
if ( isset( $arg_arr[ $i ]['post_parent'] ) && empty( $arg_arr[ $i ]['post_parent'] &&
332-
$this->tax_query_match( $arg_arr[ $i ]['tax_query'], $arg_arr[ $j ]['tax_query'] ) ) ) {
331+
if ( isset( $arg_arr[ $i ]['post_parent'] ) && empty( $arg_arr[ $i ]['post_parent'] ) &&
332+
$this->tax_query_match( $arg_arr[ $i ]['tax_query'], $arg_arr[ $j ]['tax_query'] ) ) {
333333

334334
$arg_arr[ $i ]['post_type'][] = $arg_arr['post_type'][0];
335335

includes/class/class-apl-updater.php

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function __construct( $old_version, $update_items, $return_type = 'OBJECT
123123
$this->APL_upgrade_to_03b5();
124124
}
125125
// VERSION 0.4.0
126-
if ( version_compare( '0.4.0', $old_version, '>' ) ) {
126+
if ( version_compare( '0.4.1', $old_version, '>' ) ) {
127127
if ( ! empty( $this->options ) ) {
128128
$new_options = $this->upgrade_options_03b5_to_040( $this->options );
129129
$this->options = $new_options;
@@ -822,17 +822,17 @@ private function upgrade_preset_db_03b5_to_040( $old_preset_db ) {
822822
// (string)
823823
$new_post_list->perm = $old_value->_userPerm ?: $new_post_list->perm;
824824

825+
// Default already set.
825826
// (string)
826-
// (array)=>(int)
827-
//$new_post_list->author__bool = $old_value->_postAuthorOperator ?: $new_post_list->author__bool;
827+
//$new_post_list->author__bool = 'none';
828828
if ( isset( $old_value->_postAuthorOperator ) ) {
829829
if ( 'include' === $old_value->_postAuthorOperator ) {
830830
$new_post_list->author__bool = 'in';
831831
} elseif( 'exclude' === $old_value->_postAuthorOperator ) {
832832
$new_post_list->author__bool = 'not_in';
833833
}
834834
}
835-
835+
// (array)=>(int)
836836
$new_post_list->author__in = $old_value->_postAuthorIDs ?: $new_post_list->author__in;
837837

838838
// (boolean)
@@ -1053,7 +1053,18 @@ private function reform_post_list( $apl_post_list ) {
10531053
$new_post_list->post_status = isset( $apl_post_list->post_status ) ? $apl_post_list->post_status : $new_post_list->post_status;
10541054
$new_post_list->perm = isset( $apl_post_list->perm ) ? $apl_post_list->perm : $new_post_list->perm;
10551055
$new_post_list->author__bool = isset( $apl_post_list->author__bool ) ? $apl_post_list->author__bool : $new_post_list->author__bool;
1056-
$new_post_list->author__in = isset( $apl_post_list->author__in ) ? $apl_post_list->author__in : $new_post_list->author__in;
1056+
1057+
// Hotfix for Authod IDs not updating - If Else to keep structure the same.
1058+
//$new_post_list->author__in = isset( $apl_post_list->author__in ) ? $apl_post_list->author__in : $new_post_list->author__in;
1059+
if ( isset( $apl_post_list->author__in ) ) {
1060+
$tmp_author__in = array();
1061+
foreach ( $apl_post_list->author__in as $v1_author_ID ) {
1062+
$tmp_author__in[] = intval( $v1_author_ID );
1063+
}
1064+
$new_post_list->author__in = $tmp_author__in;
1065+
} else {
1066+
$new_post_list->author__in = $new_post_list->author__in;
1067+
}
10571068
$new_post_list->ignore_sticky_posts = isset( $apl_post_list->ignore_sticky_posts ) ? $apl_post_list->ignore_sticky_posts : $new_post_list->ignore_sticky_posts;
10581069
$new_post_list->post__not_in = isset( $apl_post_list->post__not_in ) ? $apl_post_list->post__not_in : $new_post_list->post__not_in;
10591070
$new_post_list->pl_exclude_current = isset( $apl_post_list->pl_exclude_current ) ? $apl_post_list->pl_exclude_current : $new_post_list->pl_exclude_current;

readme.txt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
44
Tags: Post List, Tool, Editor, Featured, Related Posts, Author, Authors, Auto, Automate, Builder, Categories, Category, Child Pages, CMS, Content, Comment, Comments, CPT, CSS, Custom, Custom Post Type, Custom Post Types, Custom Taxonomy, Custom Taxonomies, Design, Developer, Draft, Draft Posts, Excerpt, Feature, Featured, Featured Content, Filter, Future, Future Posts, HTML, Image, Images, Links, List, Links, Magazine, Magazines, News, Page, Pages, Parent, Parent Pages, Photos, PHP, Popular Posts, Post, Posts, Private, Private Posts, Programming, Published, Related Post, Related Posts, Recent, Recent Post, Recent Posts, Shortcode, Shortcodes, Simple, Tag, Tags, Thumbnail, Web Design, Web Development, Webmaster, Widget, Widgets, WPML
55
Requires at least: 4.5
66
Tested up to: 4.8.2
7-
Stable tag: 0.4.0
7+
Stable tag: 0.4.1
88
License: GPLv2 or later
99
License URI: https://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -91,16 +91,11 @@ Currently, information can be found in 2 different locations. This is due to rec
9191

9292
Questions/Bug Report submit thread / ticket at [WordPress][wp apl support] or [GitHub Issue / Tickets][github issues].
9393

94-
== Installation ==
95-
1. Upload zip to the `/wp-content/plugins/` directory.
96-
2. Activate the plugin through the 'Plugins' menu in WordPress.
97-
3. Go to Settings->Advanced Post List to access the settings.
98-
9994

10095
== Frequently Asked Questions ==
10196

10297
= For FAQ =
103-
Go to [Q&A][apl qa].
98+
Go to [Q&A](https://support.advancedpostlist.com/qa/).
10499

105100

106101
== Screenshots ==

0 commit comments

Comments
 (0)