~canonical-sysadmins/wordpress/4.8

« back to all changes in this revision

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

  • Committer: Jamon Camisso
  • Date: 2017-01-12 15:31:31 UTC
  • mfrom: (1.1.21 upstream)
  • Revision ID: jamon.camisso@canonical.com-20170112153131-yfjnoh8x21u7flat
Merge WP4.7.1 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1631
1631
 * @return bool True on success, false on failure.
1632
1632
 */
1633
1633
function is_page_template( $template = '' ) {
 
1634
        if ( ! is_singular() ) {
 
1635
                return false;
 
1636
        }
 
1637
 
1634
1638
        $page_template = get_page_template_slug( get_queried_object_id() );
1635
1639
 
1636
1640
        if ( empty( $template ) )