Skip to content

Shortcode parsing does not allow standalone variables (Shortcake issue) #38

@oherman

Description

@oherman

Shortcake can allow and parse variables with values
eg. [mycode src=someplaceinthenet]

but WILL NOT PARSE NOR ALLOW THIS KIND OF CODE
eg. [mycode someplaceintenet]

Called as standalone variables for easier identification, these kinds cannot be easily generated within shortcake.

These standalone variables are parsed as
$attr[0], $attr[1] and so on...

while normal variables are passed as
$attr('src' => 'value')

Shortcake generates values to pass on to shortcodes by this method:

array(
'label' => 'IFrame embed code',
'attr' => 'content',
'type' => 'textarea',
'description' => 'Enter embed code generated from Google Maps.',
),

It has no provisions for sending standalone variables.

A fix for this issue requires a change in shortcake.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions