Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
imcpress-theme
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor 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
imcpress
imcpress-theme
Commits
7b1692e7
Commit
7b1692e7
authored
1 year ago
by
roigada
Browse files
Options
Downloads
Patches
Plain Diff
Plugin should handle author display, not the theme
parent
d9a9358d
Branches
fix/author-name
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/inline.php
+1
-10
1 addition, 10 deletions
includes/inline.php
with
1 addition
and
10 deletions
includes/inline.php
+
1
−
10
View file @
7b1692e7
...
...
@@ -74,15 +74,6 @@ if ( !function_exists('current_tab') )
}
}
if
(
!
function_exists
(
'get_imc_author'
)
)
{
function
get_imc_author
():
string
{
$post
=
get_post
(
get_the_ID
()
);
$author
=
get_post_meta
(
$post
->
ID
,
$post
->
post_type
.
'_metadata_author_display_name'
,
true
);
return
$author
;
}
}
if
(
!
function_exists
(
'posted_by_on'
)
)
{
function
posted_by_on
(
bool
$short
=
false
):
void
...
...
@@ -137,7 +128,7 @@ if ( !function_exists('posted_by_on') )
printf
(
'<span class="byline">, %1$s <span class="author vcard"><img class="meta icon" src="%2$suser.png" alt=""/>%3$s</span></span>'
,
__
(
'by'
,
'imcpress-theme'
),
ICONS_URI
,
esc_html
(
get_
imc
_author
()
)
esc_html
(
get_
the
_author
()
)
);
}
}
...
...
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