-
Notifications
You must be signed in to change notification settings - Fork 59
Upgrading from 1.x to 2.0
awellis13 edited this page Nov 14, 2011
·
1 revision
This document will outline things that need to be noted when upgrading your installation from 1.x to 2.0.
Facebook accounts will be de-authorized when upgrading to 2.0. This is because Social now requires the offline access permission. Any posts broadcasted to your Facebook accounts will not be aggregated until you reauthorize your Facebook accounts.
If you used a custom comments template via the SOCIAL_COMMENTS_FILE
constant, please be aware that the following changes have been made to how the comments are displayed.
- In 1.x to display the comment form you would call
Social_Comment_Form::as_html();
now you must callecho Social_Comment_Form::instance($post_id);
- Comment type processing is no longer required in the view, we have moved this into the core of Social. You can remove these lines: https://github.com/crowdfavorite/wp-social/blob/1.0.2/comments.php#L39-59
- The following code has been added to properly set the last reply time: https://gist.github.com/6a1e0782834fc806668a
- The comment tabs count is now set via
Social::add_social_items_count($social_items, $groups);