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

Boost: Fix Minify concat not working when WP is running from a subdirectory on the server #30863

Merged
merged 2 commits into from
May 24, 2023

Conversation

dilirity
Copy link
Member

Proposed changes:

  • Fixes JS an CSS concatenation not working on nested WP instances.

Other information:

  • Have you written new tests for your changes, if applicable?
  • Have you checked the E2E test CI results, and verified that your changes do not break them?
  • Have you tested your changes on WordPress.com, if applicable (if so, you'll see a generated comment below with a script to run)?

Jetpack product discussion

n/a

Does this pull request change what data or activity we track or use?

no

Testing instructions:

Test that it breaks

  • Setup the version from trunk on a WordPress site, running in a sub-directory on your server;
  • Enable JS or CSS concatenation;
  • Open the front-page and you should see 404 for concatenated URLs (they contain _static).

Test that it works

  • Setup the version from this PR on a WordPress site, running in a sub-directory on your server;
  • Enable JS or CSS concatenation;
  • Open the front-page and there should be no 404 for concatenated URLs.

@dilirity dilirity added [Status] Needs Team Review [Plugin] Boost A feature to speed up the site and improve performance. [Boost Feature] Optimizations labels May 23, 2023
@dilirity dilirity requested a review from a team May 23, 2023 09:08
@github-actions
Copy link
Contributor

github-actions bot commented May 23, 2023

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ All commits were linted before commit.
  • ✅ Add a "[Status]" label (In Progress, Needs Team Review, ...).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖


The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available.


Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped.
Then, add the "[Status] Needs Team review" label and ask someone from your team review the code.
Once you’ve done so, switch to the "[Status] Needs Review" label; someone from Jetpack Crew will then review this PR and merge it to be included in the next Jetpack release.


Boost plugin:

  • Next scheduled release: June 6, 2023.
  • Scheduled code freeze: May 29, 2023.

@thingalon thingalon merged commit 1a240d1 into trunk May 24, 2023
@thingalon thingalon deleted the fix/boost/concat-broken-in-nested-wp branch May 24, 2023 00:59
thingalon pushed a commit that referenced this pull request May 24, 2023
…g from a subdirectory on the server (#30863)

* Fix issues with wp instances in subdirectory urls

* Add changelog
@thingalon
Copy link
Member

thingalon commented May 24, 2023

Cherry picked to Boost 1.9.0 in c488143

haqadn added a commit that referenced this pull request Jun 1, 2023
* Update readme and changelogs for Boost 1.9.0-beta

* Updated package versions for automattic/jetpack-boost

* [not verified] Boost/add minify to pricing (#30711)

* Add minify and concat to pricing tables

* changelog

---------

Co-authored-by: Mark George <thingalon@gmail.com>

* [not verified] Boost: Fix UI issues (#30751)

* Fix showing exclude text when no value is empty

* Fix bottom tooltip showing below footer on getting started page

* Update tooltip position in pricing table component to be configurable

* Update tooltip positions in left column on getting started page

* Fix score text capitalization

* Add changelogs

* [not verified] Boost: Update Minify to use old Page Optimize file functions (#30829)

* Fix concat initializing despite file system being unavailable

* add changelog

* Ignore file_* function usage for phpcs

* Update changelog

* Revert changes to minify setup helper

* [not verified] Boost: Fix Minify concat not working when WP is running from a subdirectory on the server (#30863)

* Fix issues with wp instances in subdirectory urls

* Add changelog

* Boost: Make Minify concat concat service independent of WordPress (#30825)

* Attempt to remove WordPress dependencies from Minify service

* add changelog

* Fix concat initializing despite file system being unavailable

* add changelog

* Add missing cssmin library

* Ignore file_* function usage for phpcs

* Update changelog

* Revert changes to minify setup helper

* Attempt to remove WordPress dependencies from Minify service

* Add changelog

* Add missing cssmin library

* Clean up old file system references

* Fix issues with wp instances in subdirectory urls

* Fix issues with wp instances in subdirectory urls

* Add changelog

* Remove comments

* Improve code readability

* Make linter happy

* changelog

---------

Co-authored-by: Mark George <thingalon@gmail.com>

* [not verified] [Boost] Fix minify paths on sites in a subdir. (#30893)

* Properly take home_url into account to catch subdir paths

* changelog

* Prepend method with jetpack_boost_

---------

Co-authored-by: Mark George <thingalon@gmail.com>

* [not verified] [Boost] Remove invalid apply_filter on minified CSS (#31058)

* Do not call style_loader_tag with an array of handles

* changelog

---------

Co-authored-by: Mark George <thingalon@gmail.com>

* [not verified] [Boost] Avoid double-prefixing url() values in minified CSS (#31059)

* Prevent double-prefixing subdirectories

* changelog

---------

Co-authored-by: Mark George <thingalon@gmail.com>

* Boost/update readme (#31065)

* Update screenshots and readme

* changelog

* Remove out-dated paragraph

---------

Co-authored-by: Mark George <thingalon@gmail.com>

* Update readme, changelogs

* Update version numbers

* fix changelog link

* [not verified] Updated automattic/jetpack-boost version to 1.9.1

* [not verified] Updated package versions for automattic/jetpack-boost

* [not verified] Update readme and changelog

* Set stable tag to 1.9.0

* Fixup project versions

* Fix changelog and project versions

* Fix boost composer

* Composer update

* Composer update from within docker container for php 8.0

---------

Co-authored-by: thingalon <mark@thingalon.com>
Co-authored-by: Mark George <thingalon@gmail.com>
Co-authored-by: Peter Petrov <peter.petrov89@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Boost Feature] Optimizations [Plugin] Boost A feature to speed up the site and improve performance.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants