Make WordPress Core

Changes between Initial Version and Version 3 of Ticket #23816


Ignore:
Timestamp:
05/11/2014 06:44:58 PM (10 years ago)
Author:
markjaquith
Comment:

Opening this back up. The original report is mostly valid. If you register/enqueue something with a bad dependency, you get silent failure. Nothing is output, and no notices are thrown. I typo'd 'wp-utils' instead of 'wp-util' and it was maddening trying to figure out why no scripts were printing.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23816

    • Property Status changed from new to reopened
    • Property Component changed from General to Script Loader
    • Property Priority changed from low to normal
  • Ticket #23816 – Description

    initial v3  
    1111}}}
    1212
    13 Actual result: 'my-script' gets enqueued, but I don't get told that 'script-that-does-not-exist' doesn't exist and wasn't enqueued.
     13Actual result: nothing is enqueued, and no notices are thrown.
    1414
    1515Expected result: When `WP_DEBUG` is true, I should get a PHP notice warning me that the dependency script doesn't exist.