Skip to content

Cannot redeclare function #2

@carlosromans

Description

@carlosromans

Hi, i'm using this useful snippet on WordPress, but when i follow all steps i see this message on footer.php

Cannot redeclare timeAgo() (previously declared in /path/to/theme/inc/twitter/twitter.php:54) in /path/to/theme/inc/twitter/twitter.php on line 84

On twitter.php i call oauth:

// Require the OAuth class
require_once('twitter-api-oauth.php');

And on footer.php

<?php require get_template_directory() . '/inc/twitter/twitter.php'; ?>

Any suggest?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions