Index: trunk/phase3/maintenance/parserTests.txt |
— | — | @@ -2546,8 +2546,26 @@ |
2547 | 2547 | </p> |
2548 | 2548 | !! end |
2549 | 2549 | |
| 2550 | +!! test |
| 2551 | +Image link to nonexistent file (bug 1850 - good) |
| 2552 | +!! input |
| 2553 | +[[Image:No such.jpg]] |
| 2554 | +!! result |
| 2555 | +<p><a href="https://www.mediawiki.org/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="Image:No such.jpg">Image:No such.jpg</a> |
| 2556 | +</p> |
| 2557 | +!! end |
2550 | 2558 | |
| 2559 | +!! test |
| 2560 | +:Image link to nonexistent file (bug 1850 - bad) |
| 2561 | +!! input |
| 2562 | +[[:Image:No such.jpg]] |
| 2563 | +!! result |
| 2564 | +<p><a href="https://www.mediawiki.org/index.php?title=Image:No_such.jpg&action=edit" class="new" title="Image:No such.jpg">Image:No such.jpg</a> |
| 2565 | +</p> |
| 2566 | +!! end |
2551 | 2567 | |
| 2568 | + |
| 2569 | + |
2552 | 2570 | !! test |
2553 | 2571 | Character reference normalization in link text (bug 1938) |
2554 | 2572 | !! input |
Index: trunk/phase3/includes/Title.php |
— | — | @@ -2012,14 +2012,12 @@ |
2013 | 2013 | /** |
2014 | 2014 | * Should a link should be displayed as a known link, just based on its title? |
2015 | 2015 | * |
2016 | | - * Currently, a self-link with a fragment, special pages and image pages are in |
2017 | | - * this category. Special pages never exist in the database. Some images do not |
2018 | | - * have description pages in the database, but the description page contains |
2019 | | - * useful history information that the user may want to link to. |
| 2016 | + * Currently, a self-link with a fragment and special pages are in |
| 2017 | + * this category. Special pages never exist in the database. |
2020 | 2018 | */ |
2021 | 2019 | function isAlwaysKnown() { |
2022 | 2020 | return $this->isExternal() || ( 0 == $this->mNamespace && "" == $this->mDbkeyform ) |
2023 | | - || NS_SPECIAL == $this->mNamespace || NS_IMAGE == $this->mNamespace; |
| 2021 | + || NS_SPECIAL == $this->mNamespace; |
2024 | 2022 | } |
2025 | 2023 | |
2026 | 2024 | /** |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -279,6 +279,8 @@ |
280 | 280 | Copyright warning now above the buttons to ensure it's visible, |
281 | 281 | template list at the bottom so it can grow. |
282 | 282 | * Tweak infinite-template-handling loop for PHP 5.1.1 string handling change |
| 283 | +* (bug 1850) Allow red-links on image pages linked with [[:image:foo]] |
| 284 | +* (bug 360) Let Whatlinkshere track [[:image:foo]] links |
283 | 285 | |
284 | 286 | |
285 | 287 | === Caveats === |