Opened 7 years ago
Closed 7 years ago
#41426 closed enhancement (fixed)
Admin: Password protected text class in the posts list
Reported by: | slaFFik | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 4.9 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Administration | Keywords: | has-patch has-screenshots |
Focuses: | Cc: |
Description
Password protected posts (and CPTs) have this text as a fallback for excerpt in the list of posts:
There is no excerpt because this is a protected post.
They should have a proper span with a class like .post-password-state
, like it's done with "Password protected" text and its .post-state
.
This will allow to better customize the styles of the screen.
Attachments (5)
Change History (20)
#1
@
7 years ago
- Keywords needs-patch good-first-bug added
- Milestone changed from Awaiting Review to Future Release
#3
@
7 years ago
- Keywords needs-refresh added; has-patch removed
@mp518
This ticket is about the string There is no excerpt because this is a protected post.
in get_the_excerpt
.
See: https://core.trac.wordpress.org/browser/trunk/src/wp-includes/post-template.php#L385
#4
@
7 years ago
- Keywords has-patch added; needs-refresh removed
Hey @Soean,
alright i got it and i will add new patch with the string.
#6
@
7 years ago
41426.3.diff adds a span with .post-password-state
class around the post password required string in get_the_excerpt()
.
#7
@
7 years ago
This is return all thing like <span class="post-password-state">There is no excerpt because this is a protected post.</span>
#9
@
7 years ago
- Keywords good-first-bug removed
41426.4.diff corrects the tests of get_the_excerpt()
.
@mp518 Please don't use echo
in aget_
function.
Hy i have added patch when post comes with password protected this class is added.
If i have something wrong then let me know.
Thank You,
Mahesh