chrisblakley / Nebula

Nebula is a WordPress theme framework that focuses on enhancing development. The core features of Nebula make it a powerful tool for designing, developing, and analyzing WordPress websites consistently, yet its deliberately uncomplicated code syntax also serves as a learning resource for programmers themselves.
https://nebula.gearside.com
GNU General Public License v2.0
139 stars 36 forks source link

Fix Multi-Site Options Bug #2256

Closed terencehoverter closed 11 months ago

terencehoverter commented 11 months ago

This is my proposed fix for the options bug that occurs after the Nebula-main theme is updated in a multi-site instance

Types of change(s)

Bug fix

What problem does this address?

Related to #2255

What is the new behavior?

These modifications break out the original check_for_new_options() into two separate functions. The first determines if the current WordPress instance includes multi site. If so, we get all network subsites and switch to/from each site to check/apply new options.

Additional information

(Include screenshots if possible)