Changeset 3214970 for whp-hide-posts
- Timestamp:
- 12/30/2024 05:01:10 PM (15 months ago)
- Location:
- whp-hide-posts
- Files:
-
- 32 added
- 3 edited
-
tags/2.0.2 (added)
-
tags/2.0.2/LICENSE (added)
-
tags/2.0.2/README.md (added)
-
tags/2.0.2/assets (added)
-
tags/2.0.2/assets/admin (added)
-
tags/2.0.2/assets/admin/css (added)
-
tags/2.0.2/assets/admin/css/whp-style.css (added)
-
tags/2.0.2/assets/admin/js (added)
-
tags/2.0.2/assets/admin/js/whp-script.js (added)
-
tags/2.0.2/inc (added)
-
tags/2.0.2/inc/admin (added)
-
tags/2.0.2/inc/admin/class-dashboard.php (added)
-
tags/2.0.2/inc/admin/class-post-hide-metabox.php (added)
-
tags/2.0.2/inc/class-post-hide.php (added)
-
tags/2.0.2/inc/class-zeen-theme.php (added)
-
tags/2.0.2/inc/core (added)
-
tags/2.0.2/inc/core/autoloader.php (added)
-
tags/2.0.2/inc/core/class-constants.php (added)
-
tags/2.0.2/inc/core/class-database.php (added)
-
tags/2.0.2/inc/core/class-plugin.php (added)
-
tags/2.0.2/inc/core/helpers.php (added)
-
tags/2.0.2/inc/traits (added)
-
tags/2.0.2/inc/traits/trait-singleton.php (added)
-
tags/2.0.2/languages (added)
-
tags/2.0.2/languages/whp-hide-posts-mk_MK.mo (added)
-
tags/2.0.2/languages/whp-hide-posts-mk_MK.po (added)
-
tags/2.0.2/uninstall.php (added)
-
tags/2.0.2/views (added)
-
tags/2.0.2/views/admin (added)
-
tags/2.0.2/views/admin/template-admin-dashboard.php (added)
-
tags/2.0.2/views/admin/template-admin-post-metabox.php (added)
-
tags/2.0.2/whp-hide-posts.php (added)
-
trunk/README.md (modified) (1 diff)
-
trunk/inc/class-post-hide.php (modified) (2 diffs)
-
trunk/whp-hide-posts.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
whp-hide-posts/trunk/README.md
r3213956 r3214970 6 6 Tested up to: 6.7.1 7 7 Requires PHP: 7.3 8 Stable tag: 2.0. 18 Stable tag: 2.0.2 9 9 License: GPLv3 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html -
whp-hide-posts/trunk/inc/class-post-hide.php
r3213957 r3214970 132 132 $query->set( 'meta_compare', 'NOT EXISTS' ); 133 133 } 134 } elseif ( ( is_front_page() && is_home() ) || is_front_page() ) { 134 } 135 136 if ( ( is_front_page() && is_home() ) || is_front_page() ) { 135 137 $this->exclude_by_condition( $query, 'hide_on_frontpage', '_whp_hide_on_frontpage' ); 136 138 } elseif ( is_home() ) { 137 139 $this->exclude_by_condition( $query, 'hide_on_blog_page', '_whp_hide_on_blog_page' ); 138 } elseif ( is_post_type_archive( $q_post_type ) ) { 140 } 141 142 if ( is_post_type_archive( $q_post_type ) ) { 139 143 $this->exclude_by_condition( $query, 'hide_on_cpt_archive', '_whp_hide_on_cpt_archive' ); 140 144 } elseif ( is_category( $q_post_type ) ) { … … 150 154 } elseif ( is_feed() ) { 151 155 $this->exclude_by_condition( $query, 'hide_in_rss_feed', '_whp_hide_in_rss_feed' ); 152 } elseif ( whp_plugin()->is_woocommerce_active() ) { 153 if ( is_shop() ) { 154 $this->exclude_by_condition( $query, 'hide_on_store', '_whp_hide_on_store' ); 155 } elseif ( is_product_category() ) { 156 $this->exclude_by_condition( $query, 'hide_on_product_category', '_whp_hide_on_product_category' ); 157 } 156 } elseif ( whp_plugin()->is_woocommerce_active() && is_shop() ) { 157 $this->exclude_by_condition( $query, 'hide_on_store', '_whp_hide_on_store' ); 158 } elseif ( whp_plugin()->is_woocommerce_active() && is_product_category() ) { 159 $this->exclude_by_condition( $query, 'hide_on_product_category', '_whp_hide_on_product_category' ); 158 160 } elseif ( is_archive() ) { 159 161 $this->exclude_by_condition( $query, 'hide_on_archive', '_whp_hide_on_archive' ); -
whp-hide-posts/trunk/whp-hide-posts.php
r3213955 r3214970 5 5 * Author: MartinCV 6 6 * Author URI: https://www.martincv.com 7 * Version: 2.0. 17 * Version: 2.0.2 8 8 * Text Domain: whp-hide-posts 9 9 * … … 49 49 * @var string 50 50 */ 51 private $version = '2.0 ';51 private $version = '2.0.2'; 52 52 53 53 /**
Note: See TracChangeset
for help on using the changeset viewer.