Skip to content

Typo in WikiEmbed.php #7

@JulianSMoore

Description

@JulianSMoore

Hi Enej

1st - great plugin! If you could only find a way to bring it up to WP4 I would be so grateful.

I have started to learn JS & PHP to be able to understand how it all works and have found 1 issue by code inspection and 1-2 by behaviour. I did an accordion.js fix myself to make them fit the text, but I can't resolve the following...

WikieEmped.php at line 153 current_user_can( 'pulish_pages' ) should be current_user_can( 'publish_pages' )

Note however that making the correction uncovers a problem (further incompatibility with WP4.0?)

With settings as Internal WIki Links = New Wordpress page, and wiki embedded with accordions

As coded, clicking on a wiki link creates a new page with nominally correct accordions; correcting typo results leads to full width, all expanded, uncollapsible accordions.

Note also (independent of this typo) the message:

Warning: in_array() expects parameter 2 to be array, null given in /var/sites/b/blog.pantologea.com/public_html/wp-includes/nav-menu-template.php on line 609

Which I assume may be a WP4 incompatibility issue. Installing 1.4.7 from here also led to "can't wiki embed content from your own site" is that a bug or a (retrograde) new feature.

It's so close to being perfect for my needs...

wiki-embed misbehaviour

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions