Hi Alexandre,
I like your Private Media plugin a lot and would like to provide code updates and bug fixes. This plugin was not updated during the last 4 years and there are some issues with PHP 8.x. I saw you created an empty GitHub repository at https://github.com/froger-me/private-media. Could you please upload your code there to make it easier to provide pull requests. Having access to the full build system would also be great.
First there is a fatal error in class-private-media-request-handler.php:
status_header()
Where the following line fails:
status_header( $status );
Your code always uses a string for $status. The workaround for now is:
status_header( intval( $status ) );
With this change the plugin runs fine again.
I would like to add the following changes:
Other than that I could not find any WordPress incompatibilities.
]]>The running of Private Media 1.2 is interfering with the correct functioning of my Job Manager Plugin. The Private Media site says the plugin is compatible up to version 4.9.15 of WordPress and I am running version 5.4.2. Are there any updates available to Private Media? If not, can you suggest an alternative Plugin for me to download please? Thanks…Camilla
]]>Hey, thanks for your plugin. Just in case it is not allready on your feature list:
My usecase is to prevent access to photosets with around a couple of hundred photos per set. That is pain in the ass, to prevent every photo manually.
Do you have a hint for me, to deal with that problem more easily?
Thanks in advance
]]>I have a site where the wordpress install is in a sub-directory of /wp/
The rest of the site is server from root so wp-content is still https://www.mysite.com/wp-content. This is set by the site’s host.
When I set an item in the media library to ‘prevent hotlinks’ or ‘limit to role’ then the URL changes to:
Which does not work.
https://www.mysite.com/wp-content/pvtmed-uploads/2019/01/hidden-image.jpg
Does work but access to the file is not restricted.
Any idea how I can fix this?
]]>