WPChill / download-monitor

A WordPress plugin which provides an intuitive UI for uploading and managing downloadable files (including support for multiple versions), inserting download links into posts & logging downloads.
http://wordpress.org/extend/plugins/download-monitor/
255 stars 116 forks source link

PHP warning on templates that do not use defined Download - page addon for example #1413

Closed razvanaldea89 closed 5 months ago

razvanaldea89 commented 5 months ago

Describe the bug PHP Warnings are triggered on shortcodes that do not use a defined Download - Page Addon for example -, so neither the $dlm_download nor the $downloadobjects are defined.

To Reproduce Steps to reproduce the behavior:

  1. Activate Page Addon, add shortcode [download_page] on a page and see the results. The WP_DEBUG constant needs to be defined and set to true

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Extensions installed and activated:

Additional context Add any other context about the problem here.