Ticket #13265: 13265.patch
File 13265.patch, 834 bytes (added by , 12 years ago) |
---|
-
wp-includes/class-wp-theme.php
922 922 public function get_page_templates() { 923 923 // If you screw up your current theme and we invalidate your parent, most things still work. Let it slide. 924 924 if ( $this->errors() && $this->errors()->get_error_codes() !== array( 'theme_parent_invalid' ) ) 925 return a rray();925 return apply_filters( 'page_templates', array() ); 926 926 927 927 $page_templates = $this->cache_get( 'page_templates' ); 928 928 … … 949 949 if ( $this->parent() ) 950 950 $page_templates += $this->parent()->get_page_templates(); 951 951 952 return $page_templates;952 return apply_filters( 'page_templates', $page_templates ); 953 953 } 954 954 955 955 /**