WordPress.org

Ready to get started?Download WordPress

Forums

Redirection
$redirection should declared as global, explicitly (1 post)

  1. Ka Yue
    Member
    Posted 2 years ago #

    In the last line of redirection/redirection.php

    $redirection should declared as global, explicitly, because if I initiate WordPress inside a class, then all variables will be set as global variable. For example, this Symfony bundle: https://github.com/kayue/WordpressBundle/blob/master/Wordpress/ApiLoader.php#L73

    This can be fix by simply using this line:

    $GLOBALS['redirection'] = new Redirection;

    http://wordpress.org/extend/plugins/redirection/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic