Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-69474 accessibility: page->url can be not set, protect against that
Both in unit tests, but also in other areas (say blocks, for example) it's possible that page->url has not been set yet. So, let's change current code to always check if we have something (page->url) to compare. Note the use of has_set_url() is needed, because page->url is magic method and it doesn't work as expected. Hate magics!
- Loading branch information