Commit Graph

7 Commits

Author SHA1 Message Date
Nick Cernis 0552098a50 [GF-3978] fix: stop corrupt sidebar data from causing errors (#56)
* fix: stop corrupt sidebar data from causing errors

By filtering out sidebars without a name in get_sidebars.

The name is a required field when entering new sidebars,
so sidebars missing a name are likely corrupt.

Designed to address "Cannot access offset of type string on string"
when trying to access $sidebar['name'] for sidebars without a name.

See https://wordpress.org/support/topic/php-8-2-error-6/.

* chore: formatting
2024-03-06 09:27:45 +01:00
Marcos Schratzenstaller f42b9c04db Allow sidebars to show in the custom Blog Posts page 2019-07-01 17:28:17 -03:00
Marcos Schratzenstaller fd504d41ac Introducing coding standards validation. 2019-05-07 08:54:54 -04:00
Nathan Rice 87b2e738d4 Docs, and bump WP version. Fixes #24. 2017-04-13 15:05:19 -04:00
Nathan Rice 6f8b1a2069 Modify deprecated functions for backward compatibility. see #22. 2017-03-10 14:27:11 -05:00
Nathan Rice 7b439c95a7 Use more reliable method for switching sidebars. should eliminate issues moving sidebars in #22. 2017-03-08 22:42:02 -05:00
Nathan Rice febb5ede11 Rewrite based on new plugin boilerplate. 2017-03-01 19:51:34 -05:00