• In this themes functions.php I find

    /**
     * Enqueue CSS stylesheet with theme styles for infinity.
     */
    function reddle_infinite_scroll_enqueue_styles() {
    	// Add theme specific styles.
    	wp_enqueue_style( 'infinity-reddle', plugins_url( 'reddle.css', __FILE__ ), array(), '2012-06-26' );
    }

    which generates the weirdest file path. Sort of a combination between a plugin and theme path…

    There does not seem to be any reddle.css anywhere so should this not be removed completely?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Could you please confirm what version of Reddle you’re using? I’m not finding this function in the theme. Thanks!

    I installed Reddle on a multisite (I’m using it as a parent theme) and it’s reported as version 1.3.3 which looks like the latest.

    You can find the function reddle_infinite_scroll_enqueue_styles() in https://themes.svn.wordpress.org/reddle/1.3.3/functions.php using that out of place plugins_url( 'reddle.css', __FILE__ ) part there.

    Thanks – I’m going to ask our developers to take a look at these lines and see whether they’re needed. We’ll keep you posted here.

    Thanks Kathryn πŸ™‚

    Hi again,

    Now I’m getting huge error logs completely flooded with errors like:

    PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, function 'reddle_infinite_scroll_enqueue_styles' not found or invalid function name

    which is caused by the fact that the function reddle_infinite_scroll_enqueue_styles() mentioned earlier I simply removed in the current version.

    The problem is that the line

    add_action( 'template_redirect',      'reddle_infinite_scroll_enqueue_styles', 25 );

    still remained…

    If that is remove too then it should be all good πŸ™‚

    Thanks for the heads-up – I’ve added this to the report for our developers.

    We’ve fixed this up and the updated version of Reddle is now available. Thanks again for letting us know.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Missing reddle.css and plugins_url() used in wp_enqueue_style() bug’ is closed to new replies.