WordPress.org

Forums

RTL Tester
[resolved] PHP error (6 posts)

  1. wpweaver
    Member
    Posted 2 years ago #

    When running with WP_DEBUG true, I get this diagnostic:

    Warning: Creating default object from empty value in /wp-content/plugins/rtl-tester/rtl-tester.php on line 83

    Please don't forget to test your plugin when running with WP_DEBUG true!

    http://wordpress.org/extend/plugins/rtl-tester/

  2. Same here. I removed that line and everything still functions correctly, so I'm not sure if it's truly needed.

  3. Yoav Farhi
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for the report guys, this should be fixed in 1.0.3 (just tagged, should be available in a short bit)

  4. Scolpy
    Member
    Posted 2 years ago #

    I have the same error in version 1.0.3(which already should be fixed in this version).

    Thanks!

  5. Slava UA
    Member
    Posted 2 years ago #

    It was not fixed. The code below fixes that (put that instead line 83.

    if(!empty($wp_styles))
        $wp_styles->text_direction = $direction;
  6. Yoav Farhi
    Member
    Plugin Author

    Posted 2 years ago #

    1.0.4 should hopefully fix that. I haven't been able to reproduce the problem, so if it's still happening, please let me know.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • RTL Tester
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.