Changeset 2967470
- Timestamp:
- 09/15/2023 11:29:25 AM (3 years ago)
- Location:
- postpeek/trunk
- Files:
-
- 2 edited
-
postpeek.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
postpeek/trunk/postpeek.php
r2967453 r2967470 4 4 * Plugin Name: PostPeek 5 5 * Description: PostPeek: Immediate Post Insights, a convenient plugin that adds a direct link to search console stats for each post. 6 * Version: 1.1. 16 * Version: 1.1.2 7 7 * Tested up to: 6.3 8 8 * Author: Jlil … … 69 69 // Define the link based on whether the user is in the admin area or the frontend 70 70 // Determine the URL to point to based on the current page context 71 $home_url = esc_url($home_url); 72 $home_url_with_slash = trailingslashit($home_url); 73 71 74 if (is_admin()) { 72 $page_url = '&page=!' . esc_url($home_url);75 $page_url = '&page=!' . $home_url_with_slash; 73 76 } elseif (is_home() || is_front_page() || is_search()) { 74 $page_url = '&page=!' . esc_url($home_url);77 $page_url = '&page=!' . $home_url_with_slash; 75 78 } elseif (is_single() || is_page()) { 76 79 $page_url = '&page=!' . esc_url(get_permalink()); … … 79 82 $page_url = '&page=!' . esc_url(get_term_link($term)); 80 83 } else { 81 $page_url = '&page=!' . esc_url($home_url); // Fallback to home URL84 $page_url = '&page=!' . $home_url_with_slash; // Fallback to home URL 82 85 } 83 86 -
postpeek/trunk/readme.txt
r2967453 r2967470 5 5 Requires at least: 4.0 6 6 Tested up to: 6.3 7 Stable tag: 1.1. 17 Stable tag: 1.1.2 8 8 License: GPL-2.0-or-later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 86 86 == Changelog == 87 87 88 = 1.1.2 [15-09-2023] = 89 * Fixed a bug related to homepage search console url. 90 88 91 = 1.1.1 [15-09-2023] = 89 92 * Added "Admin Bar Search Console Link" feature.
Note: See TracChangeset
for help on using the changeset viewer.