WordPress.org

Ready to get started?Download WordPress

Forums

Custom About Author
[resolved] Debug Errors > Fixed it for you (2 posts)

  1. Baden
    Member
    Posted 1 year ago #

    A client is using your plugin and it causing php warnings when in debug mode. If you care, this is how we fixed it:
    in custom-about-author.php change:

    wp_enqueue_style('cab_style', $caa_plugin_dir_path.'/cab-style.css');

    to:

    function cabStyle() {
    	global $caa_plugin_dir_path;
    	wp_enqueue_style('cab_style', $caa_plugin_dir_path.'/cab-style.css');
    }
    add_action('wp_enqueue_scripts', 'cabStyle');

    More info at: http://codex.wordpress.org/Function_Reference/wp_enqueue_style

    http://wordpress.org/extend/plugins/custom-about-author/

  2. edwinkwan
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks Baden,

    I've added the change to version 1.5.2

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic