Skip to content

sozo-design/sozo-wp-patches

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

SOZO WP Patches

A centralized repository of patches for WordPress plugins maintained by SOZO Design.

Overview

This repository contains patches for various WordPress plugins that we commonly use across client projects. These patches address issues that haven't yet been fixed by plugin authors or provide temporary workarounds for compatibility problems.

Repository Structure

sozo-wp-patches/
├── README.md
├── patches/
│   ├── plugin-slug/
│   │   ├── issue-description.patch
│   │   └── another-fix.patch
│   └── another-plugin/
│       └── fix-description.patch

How to Use

With Composer (Bedrock or Similar)

  1. Add this plugin to your composer.json:
"require": {
  "cweagans/composer-patches": "^1.7"
}
  1. Configure the patches you want to apply:
"extra": {
  "patches": {
    "woocommerce/woocommerce": {
      "Fix checkout issue with PayPal": "https://raw.githubusercontent.com/sozo-design/sozo-wp-patches/main/patches/woocommerce/fix-paypal-checkout.patch"
    }
  }
}
  1. Run composer update to apply the patches.

Contributing

We welcome contributions from the WordPress community! If you've created a patch for a plugin issue:

  1. Fork this repository
  2. Add your patch to the appropriate plugin directory in patches/
  3. Submit a pull request with clear documentation about what your patch fixes

How to Create Patches

Follow these steps to create and test patches for WordPress plugins:

Step 1: Navigate to the Plugin Directory

Open Terminal and change to the plugin directory:

cd web/app/plugins/plugin-name

Step 2: Initialize Git

Initialize a Git repository to track changes:

git init && git add .

Step 3: Make Your Changes

Edit the plugin files to fix the issue you're addressing.

Step 4: Create a Patch File

Generate a patch and move it to your patches directory:

git diff -w > fix_issue_name.patch

Step 4: Test the Patch

Dry Run - Check if patch can be applied:

git apply --check patches/plugin-name/fix_issue_name.patch --directory=web/app/plugins/plugin-name

Check what's failing:

git apply --reject --whitespace=fix patches/plugin-name/fix_issue_name.patch --directory=web/app/plugins/plugin-name

Support

For assistance with patches or to report issues:

  • Open an issue in this repository

About

All plugin patches goes here

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published