Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-basic-requirements
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
wp-basic-requirements
Commits
b006b922
Commit
b006b922
authored
6 years ago
by
Dyszczo
Browse files
Options
Downloads
Plain Diff
Merge branch 'feature/plugin_name' into 'master'
plugin name See merge request
!12
parents
5085922f
d52dd1d4
No related branches found
Branches containing commit
Tags
2.4.0
Tags containing commit
1 merge request
!12
plugin name
Pipeline
#8745
passed with stages
Stage: tools
Stage: tests
in 1 minute
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+4
-0
4 additions, 0 deletions
CHANGELOG.md
src/Plugin/Plugin_Info.php
+18
-1
18 additions, 1 deletion
src/Plugin/Plugin_Info.php
with
22 additions
and
1 deletion
CHANGELOG.md
+
4
−
0
View file @
b006b922
## [2.4.0] - 2019-06-04
### Added
-
Plugin name in plugin info
## [2.3.1] - 2019-03-25
### Fixed
-
Backward compatibility
...
...
This diff is collapsed.
Click to expand it.
src/Plugin/Plugin_Info.php
+
18
−
1
View file @
b006b922
...
...
@@ -34,6 +34,9 @@ class WPDesk_Plugin_Info implements WPDesk_Translatable, WPDesk_Buildable, WPDes
/** @var string */
private
$product_id
;
/** @var string */
private
$plugin_name
;
/** @var \DateTimeInterface */
private
$release_date
;
...
...
@@ -110,6 +113,20 @@ class WPDesk_Plugin_Info implements WPDesk_Translatable, WPDesk_Buildable, WPDes
$this
->
product_id
=
$product_id
;
}
/**
* @return string
*/
public
function
get_plugin_name
()
{
return
$this
->
plugin_name
;
}
/**
* @param string $plugin_name
*/
public
function
set_plugin_name
(
$plugin_name
)
{
$this
->
plugin_name
=
$plugin_name
;
}
/**
* @return DateTimeInterface
*/
...
...
@@ -148,7 +165,7 @@ class WPDesk_Plugin_Info implements WPDesk_Translatable, WPDesk_Buildable, WPDes
/**
* @param $value
*/
public
function
set_text_domain
(
$value
)
{
public
function
set_text_domain
(
$value
)
{
$this
->
text_domain
=
$value
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment