| 1 | <?php |
||
| 7 | class FooGallery_Pro_Gallery_Shortcode_Override { |
||
|
|
|||
| 8 | |||
| 9 | function __construct() { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Create the override |
||
| 16 | * @return array |
||
| 17 | */ |
||
| 18 | function gallery_shortcode_override_settings($settings) { |
||
| 30 | |||
| 31 | /* |
||
| 32 | * Override the gallery shortcode output if enabled |
||
| 33 | * @param $output |
||
| 34 | * @param $attr |
||
| 35 | * @param $instance |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | function override_gallery_output( $output, $attr, $instance) { |
||
| 51 | } |
||
| 52 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.