Opened 9 years ago
Closed 8 years ago
#41426 closed enhancement (fixed)
Admin: Password protected text class in the posts list
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| 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
@
9 years ago
- Keywords needs-patch good-first-bug added
- Milestone changed from Awaiting Review to Future Release
#3
@
9 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
@
9 years ago
- Keywords has-patch added; needs-refresh removed
Hey @Soean,
in ticket description mention that "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."
not about the string.so i hope this is regarding add class.so i think do not remove has-patch keyword.
#6
@
9 years ago
41426.3.diff adds a span with .post-password-state class around the post password required string in get_the_excerpt().
#7
@
9 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
@
9 years ago
- Keywords good-first-bug removed
41426.4.diff corrects the tests of get_the_excerpt().
@mp518 Please don't use echoin 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