Docs: Replace multiple single line comments with multi-line comments.
This changeset updates various comments as per WordPress PHP Inline Documentation Standards. See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#5-inline-comments. Follow-up to [56174], [56175], [56176], [56177], [56178], [56179], [56180], [56191], [56192], [56193]. Props costdev, audrasjb. See #58459. Built from https://develop.svn.wordpress.org/trunk@56194 git-svn-id: http://core.svn.wordpress.org/trunk@55706 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -470,8 +470,10 @@ function get_page_template() {
|
||||
$pagename = get_query_var( 'pagename' );
|
||||
|
||||
if ( ! $pagename && $id ) {
|
||||
// If a static page is set as the front page, $pagename will not be set.
|
||||
// Retrieve it from the queried object.
|
||||
/*
|
||||
* If a static page is set as the front page, $pagename will not be set.
|
||||
* Retrieve it from the queried object.
|
||||
*/
|
||||
$post = get_queried_object();
|
||||
if ( $post ) {
|
||||
$pagename = $post->post_name;
|
||||
|
||||
Reference in New Issue
Block a user