Plugin Directory

Changeset 3283141


Ignore:
Timestamp:
04/28/2025 07:22:45 AM (11 months ago)
Author:
a3rev
Message:

Release new version 2.8.6

  • This maintenance release has a bug fix that was introduced in security patch release 2.8.5 earlier today.
  • Fix - Correct value from post_ids array
  • Props - to @dmaragris for reporting the bug.
Location:
page-views-count/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • page-views-count/trunk/page-views-count.php

    r3282975 r3283141  
    33Plugin Name: Page Views Count
    44Description: 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.5
     5Version: 2.8.6
    66Requires at least: 6.0
    77Tested up to: 6.8
     
    2424define( 'A3_PVC_KEY', 'a3_page_view_count' );
    2525define( 'A3_PVC_PREFIX', 'wp_pvc_' );
    26 define( 'A3_PVC_VERSION', '2.8.5' );
     26define( 'A3_PVC_VERSION', '2.8.6' );
    2727define( 'A3_PVC_G_FONTS', false );
    2828
  • page-views-count/trunk/readme.txt

    r3282975 r3283141  
    44Requires at least: 6.0
    55Tested up to: 6.8
    6 Stable tag: 2.8.5
     6Stable tag: 2.8.6
    77License: GPLv3
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    102102
    103103== 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.
    104109
    105110= 2.8.5 - 2025/04/28 =
     
    600605== Upgrade Notice ==
    601606
     607= 2.8.6 =
     608This maintenance release has a bug fix that was introduced in security patch release 2.8.5 earlier today.
     609
    602610= 2.8.5 =
    603611This 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  
    4141
    4242        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.
    4945        $placeholders = implode(',', array_fill(0, count($post_ids), '%s'));
    5046
    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;
    5349        $prepare_values[] = $nowisnow;
    5450
Note: See TracChangeset for help on using the changeset viewer.