WP Featured Content Slider
fix for use of deprecated usage of argument (4 posts)

  1. cardinalu
    Posted 5 years ago #

    for your next release, in featured-content-slider.php at line 17, you might want to replace the third constant, 10, with 'manage_options'

    this will fix the following error:

    Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead.
    Deprecated in version 2.0.


  2. sangdth
    Posted 5 years ago #

    thank cardinalu, I met little more problem,
    when i debug with WP_DEBUG, it appear "

    Undefined variable: post_id in wp-content/plugins/wp-featured-content-slider/featured-content-slider.php on line 91

    And this is the function

    function get_wp_generated_thumb($position) {
    $thumb = get_the_post_thumbnail($post_id, $position);
    $thumb = explode("\"", $thumb);
    return $thumb[5];

    Could you help me?

    Thank in advance!

  3. cardinalu
    Posted 5 years ago #

    I'll give it a look and come back here with a fix, if i'll figure it out, but not earlier than tomorrow.

  4. sangdth
    Posted 5 years ago #

    Thanks cardinalu so much, but, when I try to define it by add more line:
    global $post_id;
    Ha ha, warning disapper, but I guess, is it OK?

    And also in dashboard, some posts (not all) will appears this warning:
    Notice: Undefined index: feat_slider in /Applications/MAMP/htdocs/wordpress/wp-content/plugins/wp-featured-content-slider/featured-content-slider.php on line 49

    function feat_meta(){
    global $post;
    $custom = get_post_custom($post->ID);
    $feat_slider = $custom["feat_slider"][0];

    In this case, the global $feat_slider not working, ha ha ha. Sorry, i'm not good in PHP.
    Many thanks in advance, and have a nice day, cardinalu.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Featured Content Slider
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic