~canonical-sysadmins/wordpress/4.9.6

« back to all changes in this revision

Viewing changes to wp-admin/includes/template.php

  • Committer: Barry Price
  • Date: 2017-09-20 02:35:11 UTC
  • mfrom: (1.1.28 upstream)
  • Revision ID: barry.price@canonical.com-20170920023511-9bvjr2gseb4rb1e4
Merge WP4.8.2 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
772
772
        ksort( $templates );
773
773
        foreach ( array_keys( $templates ) as $template ) {
774
774
                $selected = selected( $default, $templates[ $template ], false );
775
 
                echo "\n\t<option value='" . $templates[ $template ] . "' $selected>$template</option>";
 
775
                echo "\n\t<option value='" . esc_attr( $templates[ $template ] ) . "' $selected>" . esc_html( $template ) . "</option>";
776
776
        }
777
777
}
778
778