gambitph / Titan-Framework

The easiest to use WordPress option framework.
http://www.titanframework.net
377 stars 137 forks source link

WARNING MESSAGES #364

Closed rogerad closed 8 years ago

rogerad commented 8 years ago

i am using your code and get this message

Warning: array_merge(): Argument #2 is not an array in C:\xampp\apps\wordpress\htdocs\wp-content\plugins\titan-framework\lib\class-option-font.php on line 541

How do i disable warning messages so the user does not see them ?

ReggieDuran commented 8 years ago

@rogerad Please paste the code that caused the error.

rogerad commented 8 years ago

here is the editor code $aa_panel->createOption( array(

    'id'   => 'aa_editor_type', // The ID which will be used to get the value of this option
    'type' => 'editor', // Type of option we are creating
    'name' => 'My Editor Option', // Name of the option which will be displayed in the admin panel
    'desc' => 'This is our option' // Description of the option which will be displayed in the admin panel

) );

i am using version 1.10 of titan screenshot attached screenshot - 1_10_2016 11_26_32 pm`

ReggieDuran commented 8 years ago

@rogerad. We've tested your code and there's no error. Can you send another screenshot?

rogerad commented 8 years ago

SAME SCREENSHOT

screenshot - 1_10_2016 11_26_32 pm

ReggieDuran commented 8 years ago

Update now @rogerad 19fde9add13e602ffbb02e58a9094568c8cfe433. This commit will fix your problem now.