Skip to content

Commit

Permalink
fix dynamic property creation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
chad1008 committed Sep 10, 2024
1 parent 99088d1 commit 0177110
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/classes/class-gif.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ class GIF {
*/
public $icon;
public $view_icon;
public $edit_icon;

/**
* A list of the tags assigned to the GIF
Expand Down
8 changes: 8 additions & 0 deletions src/classes/class-tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ class Tag {
*/
public $new_name;

/**
* The list of GIFs that have this tag assigned
*
* @since 2.0
* @var array
*/
public $gifs_with_tag;

public function __construct( int $id = null ) {
// Set database connection
$this->db = prep_db();
Expand Down

0 comments on commit 0177110

Please sign in to comment.