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 title option ends up as the manifest title
  • Without the option, the title is the file name
  • Kernel test for both cases

Testing instructions

  1. Call c2pa_sign_create_manifest($file, ['title' => 'Test']). The manifest title is Test.
  2. Call it without options. The title is the file name.

AI Compliance

🤖 Generated with the help of an LLM, reviewed and approved by me before posting.