Skip to content

Call "the_post" action to fix Visual Composer editor#958

Closed
felthy wants to merge 2 commits intotimber:masterfrom
felthy:master
Closed

Call "the_post" action to fix Visual Composer editor#958
felthy wants to merge 2 commits intotimber:masterfrom
felthy:master

Conversation

@felthy
Copy link
Copy Markdown

@felthy felthy commented Apr 26, 2016

Ticket: #957

Issue

Gets WPBakery Visual Composer front end editor working with Timber. See #957 for more detail.

Solution

Visual Composer uses the 'the_post' action hook to inject its inline editing anchors into the content; because the timber theme doesn't use the_post() to render content, this action is not called. I added a call to the action to Timber.

Impact

Minimal.

Usage

No change.

Considerations

This could also have been achieved by calling setup_postdata($post); at the same line instead of do_action but I felt that calling do_action would have fewer potential side effects.

Testing

None - not sure how testing could be usefully automated for this issue. Also VC is not free.

@connorjburton connorjburton self-assigned this Apr 26, 2016
@coveralls
Copy link
Copy Markdown

coveralls commented May 2, 2016

Coverage Status

Coverage increased (+0.004%) to 88.107% when pulling b0f2f24 on felthy:master into cc30127 on timber:master.

@connorjburton connorjburton mentioned this pull request May 3, 2016
@connorjburton
Copy link
Copy Markdown

Taken over by #969

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants