Special:WantedPages only lists page which having at least one red link pointing to it.
authorJuneHyeon Bae <devunt@gmail.com>
Sat, 16 Mar 2013 09:44:52 +0000 (18:44 +0900)
committerJuneHyeon Bae <devunt@gmail.com>
Mon, 23 Feb 2015 16:49:51 +0000 (01:49 +0900)
Bug: T19665
Change-Id: If2f0f09ad20ded630ad497a9c84a921c8233cfb1

RELEASE-NOTES-1.25
includes/specials/SpecialWantedpages.php
languages/i18n/en.json

index 466a786..5ce61e1 100644 (file)
@@ -105,6 +105,8 @@ production.
   and appear in the gutter on hovering over the heading.
 * Added 'CategoryViewer::doCategoryQuery' and 'CategoryViewer::generateLink' hooks
   to allow extensions to override how links to pages are rendered within NS_CATEGORY
+* (T19665) Special:WantedPages only lists page which having at least one red link
+  pointing to it.
 
 ==== External libraries ====
 * MediaWiki now requires certain external libraries to be installed. In the past
index cad2348..dd4eb0a 100644 (file)
@@ -72,7 +72,10 @@ class WantedPagesPage extends WantedQueryPage {
                                "pg2.page_namespace != '" . NS_MEDIAWIKI . "'"
                        ),
                        'options' => array(
-                               'HAVING' => "COUNT(*) > $count",
+                               'HAVING' => array(
+                                       "COUNT(*) > $count",
+                                       "COUNT(*) > SUM(pg2.page_is_redirect)"
+                               ),
                                'GROUP BY' => array( 'pl_namespace', 'pl_title' )
                        ),
                        'join_conds' => array(
index c0eb9bf..c62ef4b 100644 (file)
        "wantedcategories": "Wanted categories",
        "wantedcategories-summary": "",
        "wantedpages": "Wanted pages",
-       "wantedpages-summary": "",
+       "wantedpages-summary": "List of non-existing pages with the most links to them, excluding pages which only have redirects linking to them. For a list of non-existent pages that have redirects linking to them, see [[{{#special:BrokenRedirects}}]].",
        "wantedpages-badtitle": "Invalid title in result set: $1",
        "wantedfiles": "Wanted files",
        "wantedfiles-summary": "",