publishpress / PublishPress-Authors

PublishPress Authors is the best plugin for adding many authors to one WordPress post. You can create multiple authors, co-authors and guest authors.
14 stars 7 forks source link

Update author-boxes.php #1869

Closed spichkaJohn closed 1 month ago

spichkaJohn commented 1 month ago

Description

Even I use publishpress_authors_load_style_in_frontend to define load logic to false, I still have css loaded, found the place where condition was missed.

Benefits

Not load front css when it is not needed.

Possible drawbacks

Maybe it can cause issues for users that used loaded css event publishpress_authors_load_style_in_frontend set to false on their side.

Checklist

spichkaJohn commented 1 month ago

@ojopaul, ok, I see you already fixed this in https://github.com/publishpress/PublishPress-Authors/commit/48eef5981c70e49bca443833aabdcfaa7fb89bb3

All wp_add_inline_style should also be wrapped with this check, I guess.

ojopaul commented 1 month ago

Yes @spichkaJohn I was making a release and couldn't wait since the issue has been reported, what wp_add_inline_style are you referring to?

spichkaJohn commented 1 month ago

@ojopaul ,sorry, it is not relevant anymore, after updating to 4.7.1, both inline and external styles disappeared.

Thank you so much for such a quick fix and comments.