Ticket #13265: theme.php.diff
File theme.php.diff, 653 bytes (added by , 14 years ago) |
---|
-
theme.php
164 164 * @return array Key is template name, Value is template name 165 165 */ 166 166 function get_page_templates() { 167 /* Allow a plugin to short-circuit this function */ 168 $pre = apply_filters('pre_get_page_templates', false); 169 if( $pre ) return $pre; 170 167 171 $themes = get_themes(); 168 172 $theme = get_current_theme(); 169 173 $templates = $themes[$theme]['Template Files']; … … 191 195 } 192 196 } 193 197 194 return $page_templates;198 return apply_filters('page_templates', $page_templates, $templates); 195 199 } 196 200 197 201 /**