Plugin Directory

Changeset 1597276


Ignore:
Timestamp:
02/16/2017 12:44:54 PM (9 years ago)
Author:
cvmh
Message:

2.5.2

  • Added: post id parameter in cvmh_sticky_readmore filter
Location:
sticky/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sticky/trunk/includes/functions.php

    r1597209 r1597276  
    113113            if ( $args['showreadmore'] and ! empty( $args['readmoretext'] ) ) :
    114114                if ( $args['readmoretype'] === 'button' ) :
    115                     $readmore = '<button class="sticky-readmore sticky-goto" data-url="' . $link . '">' . apply_filters( 'cvmh_sticky_readmore', $args['readmoretext'], $i ) . '</button>';
     115                    $readmore = '<button class="sticky-readmore sticky-goto" data-url="' . $link . '">' . apply_filters( 'cvmh_sticky_readmore', $args['readmoretext'], $i, $post->ID ) . '</button>';
    116116                else :
    117                     $readmore = '<a class="sticky-readmore" href="' . $link . '">' . apply_filters( 'cvmh_sticky_readmore', $args['readmoretext'], $i ) . '</a>';
     117                    $readmore = '<a class="sticky-readmore" href="' . $link . '">' . apply_filters( 'cvmh_sticky_readmore', $args['readmoretext'], $i, $post->ID ) . '</a>';
    118118                endif;
    119119                $html .= $readmore;
  • sticky/trunk/readme.txt

    r1597209 r1597276  
    3030== Changelog ==
    3131
     32= 2.5.2 =
     33* Added: post id parameter in cvmh_sticky_readmore filter
     34
    3235= 2.5.1 =
    3336* Added: filter cvmh_sticky_link
  • sticky/trunk/sticky.php

    r1597209 r1597276  
    44 * Plugin URI: http://www.agence-web-cvmh.fr
    55 * Description: Adds sticky support for pages and/or custom posts.
    6  * Version: 2.5.1
     6 * Version: 2.5.2
    77 * Author: CVMH solutions
    88 * Author URI: http://www.agence-web-cvmh.fr
     
    1616add_action( 'plugins_loaded', 'cvmh_sticky_constants', 1 );
    1717function cvmh_sticky_constants() {
    18     define( 'CVMH_STICKY_VERSION'       , '2.5.1' );
     18    define( 'CVMH_STICKY_VERSION'       , '2.5.2' );
    1919    define( 'CVMH_STICKY_PATH'          , trailingslashit( plugin_dir_path( __FILE__ ) ) );
    2020    define( 'CVMH_STICKY_URI'           , trailingslashit( plugin_dir_url( __FILE__ ) ) );
Note: See TracChangeset for help on using the changeset viewer.