WordPress.org

Forums

WTI Like Post
[resolved] `endwhile` without a `while` in `templates/content-likes.php` (2 posts)

  1. boogah
    Member
    Posted 1 year ago #

    I've got PHP syntax checking on as a pre-deploy step in my git workflow and it complains when I try to push the latest version of WTI Like Post up to the server:

    remote: - info: checking wp-content/plugins/wti-like-post/templates/content-likes.php ...
    remote: PHP Parse error: syntax error, unexpected T_ENDWHILE in - on line 38
    remote: - warning: syntax Error Found in wp-content/plugins/wti-like-post/templates/content-likes.php ...

    From what I can see, you have an endwhile without a while in your if statement and PHP doesn't care for that.

    Just thought I'd give y'all a heads up!

    https://wordpress.org/plugins/wti-like-post/

  2. webtechideas
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for pointing that out. It should be endforeach instead of endwhile. This template file is just for instructions only and one has to customize/correct this for own purpose.

    I am sure the file you are referring is only for the PRO version and you are pushing to GIT for personal purpose only. This forum is for free plugins only so can you please put the same in the PRO Support Forum in case there is any other discussion needed.

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WTI Like Post
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic