Changeset 3283141
- Timestamp:
- 04/28/2025 07:22:45 AM (11 months ago)
- Location:
- page-views-count/trunk
- Files:
-
- 3 edited
-
page-views-count.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
-
src/pvc_class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
page-views-count/trunk/page-views-count.php
r3282975 r3283141 3 3 Plugin Name: Page Views Count 4 4 Description: Show front end users all time views and views today on posts, pages, index pages and custom post types with the Page Views Count Plugin. Use the Page Views Count function to add page views to any content type or object created by your theme or plugins. 5 Version: 2.8. 55 Version: 2.8.6 6 6 Requires at least: 6.0 7 7 Tested up to: 6.8 … … 24 24 define( 'A3_PVC_KEY', 'a3_page_view_count' ); 25 25 define( 'A3_PVC_PREFIX', 'wp_pvc_' ); 26 define( 'A3_PVC_VERSION', '2.8. 5' );26 define( 'A3_PVC_VERSION', '2.8.6' ); 27 27 define( 'A3_PVC_G_FONTS', false ); 28 28 -
page-views-count/trunk/readme.txt
r3282975 r3283141 4 4 Requires at least: 6.0 5 5 Tested up to: 6.8 6 Stable tag: 2.8. 56 Stable tag: 2.8.6 7 7 License: GPLv3 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 102 102 103 103 == Changelog == 104 105 = 2.8.6 - 2025/04/28 = 106 * This maintenance release has a bug fix that was introduced in security patch release 2.8.5 earlier today. 107 * Fix - Correct value from post_ids array 108 * Props - to @dmaragris for reporting the bug. 104 109 105 110 = 2.8.5 - 2025/04/28 = … … 600 605 == Upgrade Notice == 601 606 607 = 2.8.6 = 608 This maintenance release has a bug fix that was introduced in security patch release 2.8.5 earlier today. 609 602 610 = 2.8.5 = 603 611 This maintenance update applies 3 security patches and compatibility with WordPress 6.8 - please upgrade now. -
page-views-count/trunk/src/pvc_class.php
r3282975 r3283141 41 41 42 42 if ( !is_array( $post_ids ) ) $post_ids = array( $post_ids ); 43 $post_ids = array_map( function( $value ) { 44 global $wpdb; 45 return $wpdb->prepare( '%s', $value ); 46 }, $post_ids ); 47 48 // Create placeholders for each ID 43 44 // Create placeholders for each ID. 49 45 $placeholders = implode(',', array_fill(0, count($post_ids), '%s')); 50 46 51 // Add $nowisnow to the end of post_ids array for the final prepare statement 52 $prepare_values = $post_ids;47 // Add $nowisnow to the end of post_ids array for the final prepare statement. 48 $prepare_values = $post_ids; 53 49 $prepare_values[] = $nowisnow; 54 50
Note: See TracChangeset
for help on using the changeset viewer.