c2pa_sign_create_manifest() ignores the title option
Part of #3596034 (closed).
Problem/Motivation
c2pa_sign_create_manifest() reads $option['title'] instead of $options['title'], so a title passed by the caller is never used and the file name is always the title.
Proposed resolution
Read $options['title'].
Definition of done
- A
titleoption ends up as the manifest title - Without the option, the title is the file name
- Kernel test for both cases
Testing instructions
- Call
c2pa_sign_create_manifest($file, ['title' => 'Test']). The manifesttitleisTest. - Call it without options. The
titleis the file name.
AI Compliance
🤖 Generated with the help of an LLM, reviewed and approved by me before posting.