-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed where the uppercase letter is backfilled for 'label'.
- Loading branch information
1 parent
d570cda
commit 63a69ad
Showing
2 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* class before calling 'register'. | ||
* | ||
* @package PattonWebz Post Type Registration Class | ||
* @version 0.2.0 | ||
* @version 0.2.1 | ||
* @since 0.1.0 | ||
* @author William Patton <[email protected]> | ||
* @copyright Copyright (c) 2018-2019, William Patton | ||
|
@@ -81,7 +81,7 @@ public function get_name() { | |
public function get_labels() { | ||
|
||
return ( ! empty( $this->labels ) ) ? $this->labels : [ | ||
'name' => $this->name, | ||
'name' => ucfirst( $this->name ), | ||
]; | ||
} | ||
|
||
|
@@ -95,7 +95,7 @@ public function get_labels() { | |
*/ | ||
public function get_args() { | ||
$labels = $this->get_labels(); | ||
$name = ( isset( $labels['menu_name'] ) ) ? $labels['menu_name'] : ucfirst( $this->name ); | ||
$name = ( isset( $labels['menu_name'] ) ) ? $labels['menu_name'] : $this->name; | ||
|
||
return ( ! empty( $this->args ) ) ? $this->args : [ | ||
'post_type' => $name, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters