+ $page_templates += $this->parent()->get_page_templates( $post );
+
+ /**
+ * Filter list of page templates for a theme.
+ *
+ * This filter does not currently allow for page templates to be added.
+ *
+ * @since 3.9.0
+ *
+ * @param array $page_templates Array of page templates. Keys are filenames,
+ * values are translated names.
+ * @param WP_Theme $this The theme object.
+ * @param WP_Post|null $post The post being edited, provided for context, or null.
+ */
+ $return = apply_filters( 'theme_page_templates', $page_templates, $this, $post );
+
+ return array_intersect_assoc( $return, $page_templates );