Index: trunk/phase3/includes/Title.php |
— | — | @@ -1148,7 +1148,7 @@ |
1149 | 1149 | return false; |
1150 | 1150 | } |
1151 | 1151 | |
1152 | | - if ( $doExpensiveQueries && $this->isCascadeProtected() ) { |
| 1152 | + if ( $doExpensiveQueries && $this->isCascadeProtected() && !$this->isCssJsSubpage() ) { |
1153 | 1153 | # We /could/ use the protection level on the source page, but it's fairly ugly |
1154 | 1154 | # as we have to establish a precedence hierarchy for pages included by multiple |
1155 | 1155 | # cascade-protected pages. So just restrict it to people with 'protect' permission, |