Title: [PATCH] undefined variable &#039;rtl&#039;
Last modified: August 21, 2016

---

# [PATCH] undefined variable 'rtl'

 *  Resolved [flynsarmy](https://wordpress.org/support/users/flynsarmy/)
 * (@flynsarmy)
 * [13 years ago](https://wordpress.org/support/topic/patch-undefined-variable-rtl/)
 * With WP_DEBUG turned on I’m getting the warning
 * > Notice: Undefined variable: rtl in /path/to/wp-content/plugins/revisionary/
   > admin/agents_checklist_rvy.php on line 269
 * when loading the edit post page.
 * This is caused by you defining the following inside an if block then using it
   outside of that block so the variable isn’t always present:
 *     ```
       $rtl = ( isset($wp_locale) && ('rtl' == $wp_locale->text_direction) );
       ```
   
 *  
    The solution is pretty simple. Move the lines
 *     ```
       global $wp_locale;
       $rtl = ( isset($wp_locale) && ('rtl' == $wp_locale->text_direction) );
       ```
   
 * to the top of the _\_agents\_checklist\_display_ method just above
 *     ```
       $args = array_merge( $defaults, (array) $args );
       ```
   
 * [http://wordpress.org/extend/plugins/revisionary/](http://wordpress.org/extend/plugins/revisionary/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Kevin Behrens](https://wordpress.org/support/users/kevinb/)
 * (@kevinb)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/patch-undefined-variable-rtl/#post-3815174)
 * The PHP Notice is fixed in Revisionary 1.1.12

Viewing 1 replies (of 1 total)

The topic ‘[PATCH] undefined variable 'rtl'’ is closed to new replies.

 * ![](https://ps.w.org/revisionary/assets/icon-256x256.png?rev=3394615)
 * [PublishPress Revisions: Duplicate Posts, Submit, Approve and Schedule Content Changes](https://wordpress.org/plugins/revisionary/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/revisionary/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/revisionary/)
 * [Active Topics](https://wordpress.org/support/plugin/revisionary/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/revisionary/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/revisionary/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kevin Behrens](https://wordpress.org/support/users/kevinb/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/patch-undefined-variable-rtl/#post-3815174)
 * Status: resolved