Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added arguments to functions #136

Merged
merged 3 commits into from Nov 6, 2017
Merged

Added arguments to functions #136

merged 3 commits into from Nov 6, 2017

Conversation

dmtrpro
Copy link
Contributor

@dmtrpro dmtrpro commented Nov 4, 2017

Added functionality to get custom headers, footers and sidebars.

Added functionality to get custom headers, footers and sidebars.
@@ -45,9 +45,9 @@ public function getFunctions()
/**
* Displays Wordpress theme header (and administration menu bar if available).
*/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, could you also update PHPdoc on methods your updated please? Just to add the new argument:

      * @param string|null $name

@dmtrpro
Copy link
Contributor Author

dmtrpro commented Nov 5, 2017

Just added :)

}

/**
* Displays a Wordpress theme template part.
*
* @param string $name
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be $slug here please ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow! Sorry) This was a 2 a.m. when I write this)

@eko
Copy link
Collaborator

eko commented Nov 6, 2017

Thank you @dmtrpro :)

@eko eko merged commit 4e5b1dd into ekino:master Nov 6, 2017
@dmtrpro dmtrpro deleted the patch-1 branch November 8, 2017 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants