Closed mnajafzadeh closed 3 years ago
I don't have a business account there so I can neither see the problem nor test something. If you can provide me with an account that can do some tests, I'd be happy to.
If you can test by yourself, what about replacing ABSPATH
with get_home_path()
(you may need to include wp-admin/includes/file.php) and see if it makes any difference?
Hi,
Sorry for my delay. OK I will check.
Thank you
Hi,
Tried get_home_path() but I got the same result so, I tried with rtrim(WP_CONTENT_DIR, "/\wp-content") and it worked well on Wordpress.com. I also created a pull request with the required changes. Sorry for making 3 commits instead of 1 by mistake.
Regards
Type of issue
Prerequisites
dev
branch.Steps to reproduce the issue (for Bug report)
When installed the plugin on Wordpress.com, the path to some js files are not pointing to the right place on the server. We asked the problem from Wordpress.com support and they replied us with the following answer:
We checked the admin page framework code and found that the ABSPATH is used inside the following files: admin-page-framework.php AdminPageFramework_WPUtility.php AdminPageFramework_FormEmail.php AdminPageFramework_Requirement.php
But, I think the one which is making the problem is in: File: AdminPageFramework_WPUtility.php Line: 30
Could you please, make the code compatible with Wordpress.com?
Environment
Wordpress.com
Versions
Isolating the problem