Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get and set methods for 'gallery_attachment_ids' actually expect arrays #186

Open
markheydon opened this issue Oct 4, 2018 · 0 comments

Comments

@markheydon
Copy link

Hi,

The class headers threw me a little until I started digging through the code to work out why my string of attachment ids wasn't working! The getter/setter for gallery_attachment_ids says string but actually needs to be an array.

	/** @var String */
	private $gallery_attachment_ids;
	/**
	 * @return String
	 */
	public function get_gallery_attachment_ids() {
		return $this->gallery_attachment_ids;
	}

	/**
	 * @param String $gallery_attachment_ids
	 */
	public function set_gallery_attachment_ids( $gallery_attachment_ids ) {
		$this->gallery_attachment_ids = $gallery_attachment_ids;
	}

Persist method converts the array to a string; and retrieve converts the string to an array.

Mark

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant