Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #59206, comment 5


Ignore:
Timestamp:
08/25/2023 06:18:03 PM (9 months ago)
Author:
aslamdoctor
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #59206, comment 5

    initial v1  
    11The error appeared whenever there were no arguments passed to the [caption] shortcode. Which ended up $attr to be undefined variable.
    2 So added a condition to check it and initialize it as an empty array if not defined.
     2So added a condition to check it and initialize it as an empty array if not defined. Patch above.