-
Notifications
You must be signed in to change notification settings - Fork 40
Admin: Fix theme support. #284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
…ctivation. Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
…ection. Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
756f8ac to
5fa83b8
Compare
|
Note: The force-push was just a rebase on |
Signed-off-by: Andy Fragen <andy@thefragens.com>
Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
|
Setting to |
Signed-off-by: Andy Fragen <andy@thefragens.com>
Signed-off-by: Andy Fragen <andy@thefragens.com>
Signed-off-by: Andy Fragen <andy@thefragens.com>
Signed-off-by: Andy Fragen <andy@thefragens.com>
Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
Co-authored-by: Colin Stewart <79332690+costdev@users.noreply.github.com> Signed-off-by: Andy Fragen <andy@thefragens.com>
Signed-off-by: Andy Fragen <andy@thefragens.com>
otherwise $theme->exists() fails Signed-off-by: Andy Fragen <andy@thefragens.com>
Signed-off-by: Andy Fragen <andy@thefragens.com>
Signed-off-by: Andy Fragen <andy@thefragens.com>
|
|
||
| $did = $plugin['_fair']['id']; | ||
| $plugin['slug'] = esc_attr( $plugin['slug'] . '-' . str_replace( ':', '--', $did ) ); | ||
| $did = $item->_fair['id']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noting for myself when I'm next at my PC:
- Previously, we were setting this to
$plugin['_fair']['id']. - Now we're setting this to
$item->_fair['id'].
Are we sure that $item is an object for both plugins and themes?
If no issues exist, why did the previous array syntax work for plugins without issue - or did it?
Signed-off-by: Andy Fragen <andy@thefragens.com>
We've mostly been testing with plugins up until now. As a result, some of our features either don't support themes at all, or don't handle the differences between plugins and themes.
I used a test theme,
did:plc:fbiuevja7wpvkgkh4zcswe4r, to step through admin-based theme handling.This PR:
is_fair_plugin()tois_fair_package().rename_source_selectionsupport to themes so a theme is also installed under the correct directory name.preview_url)authorproperty for themes (yep, plugins and themes have different shapes).Reviewers
Blocked by structural changes made in #277. I'd suggest not to review this PR until that's been merged and this PR is rebased onmain. However, if you really want to review it, then you're looking at "Rename is_fair_plugin() to is_fair_package()." (070b72b) onwards.Update: #277 is merged. Go ahead and review!
Testers
You can go ahead and test this PR either locally, or in the Playground link below. Note that modal-based interactions may not work correctly in Playground, which is a Playground issue.
You can test using this DID:
did:plc:fbiuevja7wpvkgkh4zcswe4r