mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 23:58:03 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@56194 602fd350-edb4-49c9-b593-d223f7449a82
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