Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
ETH Simple Shortlinks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
WP Plugins
ETH Simple Shortlinks
Merge requests
!2
Utility methods for supported post types and statuses
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Utility methods for supported post types and statuses
develop
into
master
Overview
0
Commits
3
Pipelines
0
Changes
1
Merged
Erick Hitter
requested to merge
develop
into
master
9 years ago
Overview
0
Commits
3
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
35ddcd25
Prev
Next
Show latest version
1 file
+
1
−
1
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
35ddcd25
Don't show row actions on unsupported post statuses
· 35ddcd25
Erick Hitter
authored
9 years ago
eth-simple-shortlinks.php
+
1
−
1
Options
@@ -172,7 +172,7 @@ class ETH_Simple_Shortlinks {
@@ -172,7 +172,7 @@ class ETH_Simple_Shortlinks {
* Provide the shortlink in row actions for easy access
* Provide the shortlink in row actions for easy access
*/
*/
public
function
filter_row_actions
(
$actions
,
$post
)
{
public
function
filter_row_actions
(
$actions
,
$post
)
{
if
(
!
in_array
(
get_post_type
(
$post
),
$this
->
supported_post_types
)
)
{
if
(
!
in_array
(
get_post_type
(
$post
),
$this
->
supported_post_types
)
||
!
in_array
(
get_post_status
(
$post
),
$this
->
supported_post_statuses
)
)
{
return
$actions
;
return
$actions
;
}
}
Loading