Skip to content
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

Add Theme Previews for block themes #50030

Merged
merged 6 commits into from
Apr 28, 2023
Merged

Add Theme Previews for block themes #50030

merged 6 commits into from
Apr 28, 2023

Commits on Apr 28, 2023

  1. Add Theme Previews

    make it work for child themes
    
    sanitize the theme_preview param
    
    use the url package
    
    move to middleware
    
    make a serverside middleware
    
    add comment
    
    remove comment
    
    change url
    
    add comments
    
    add the theme previews file
    
    rename param
    
    remove unsed params
    
    fix PHPCS
    
    Add live preview buttons to block themes
    
    partly update the editor to reflect that theme preview is on
    
    keep the preview flag on when navigating through pages
    
    activate theme from the preview
    
    add an experiment
    
    add default stylesheet
    
    hide behind and experiment
    
    Update lib/experiments-page.php
    
    Co-authored-by: Dave Smith <[email protected]>
    
    Update lib/experiments-page.php
    
    Co-authored-by: Dave Smith <[email protected]>
    
    Update lib/experiments-page.php
    
    Co-authored-by: Dave Smith <[email protected]>
    
    linting and docs
    
    add a snackbar notice
    
    Translate script strings
    
    Render theme name instead of path
    
    Update packages/edit-site/src/components/save-hub/index.js
    
    Use @wordpress/url utils
    
    show button on all block themes even after scrolling
    
    Update site editor save button to activate theme
    
    Fix activate buttons to remove url param
    
    Replace history instead of pushing
    
    only activate themes when saving dirty changes
    
    move functions to utils
    
    move activate to a hook
    
    add a return url
    
    use getQueryArgs
    
    Refactor save hub activate and save button
    
    add warning about theme activation
    
    Co-authored-by: Dave Smith <[email protected]>
    
    rename function
    
    fix rebase
    
    fix PHPCS
    
    fix the experiment name
    
    wrap changes in an experiment
    scruffian committed Apr 28, 2023
    Configuration menu
    Copy the full SHA
    165110b View commit details
    Browse the repository at this point in the history
  2. Fix PHPCS

    scruffian committed Apr 28, 2023
    Configuration menu
    Copy the full SHA
    b597847 View commit details
    Browse the repository at this point in the history
  3. Fix PHPCS

    scruffian committed Apr 28, 2023
    Configuration menu
    Copy the full SHA
    7391dcb View commit details
    Browse the repository at this point in the history
  4. fix PHPCS

    scruffian committed Apr 28, 2023
    Configuration menu
    Copy the full SHA
    a8ad615 View commit details
    Browse the repository at this point in the history
  5. fix PHPCS

    scruffian committed Apr 28, 2023
    Configuration menu
    Copy the full SHA
    9843c30 View commit details
    Browse the repository at this point in the history
  6. fix PHPCS

    scruffian committed Apr 28, 2023
    Configuration menu
    Copy the full SHA
    d9a0ca1 View commit details
    Browse the repository at this point in the history