Thanks
]]>It lets you flag certain pages and posts as “Wiki-Editable,” and creates a new type of user called a “Wiki Editor.” Wiki Editors can only edit pages which are marked Wiki-Editable. The problem is, they can also edit all posts, whether those posts are marked Wiki-Editable or not.
This is not good.
Here’s the code where it sets up a new capability called ‘edit_wiki’: https://wordpress.pastebin.com/sijSz4p9
And here’s the new function it creates, which checks for edit_wiki capability before deciding whether or not to allow the user to edit a page: https://wordpress.pastebin.com/cj3SReYz
I’d like to change it so that Wiki Editors can edit posts (not just pages) which are Wiki-Editable but can’t edit any others. My assumption right now is that I need to comment out more of those granted roles, then write a new function that works like wiki_page_cap
except for posts.
Questions:
Any help would be appreciated. >.>b
]]>I am getting these errors after adding both <h2> and <h3> tags to wiki pages. Obviously this is a problem since those markups are used for making the TOC. Any help?
Warning: preg_match_all() expects parameter 2 to be string, array given in /usr/home/threemoo/public_html/wiki/wp-content/plugins/wordpress-wiki/wordpress-wiki.php on line 394
Warning: preg_match_all() expects parameter 2 to be string, array given in /usr/home/threemoo/public_html/wiki/wp-content/plugins/wordpress-wiki/wordpress-wiki.php on line 394
]]> 1. Made some changes to ensure that the edit functionality only occurs for Wiki Editable pages and posts for users logged in as a Wiki Editor
2. Added the capability to add piped links to pages
3. Added a new Wiki Settings pages that allows you to customize the number of revisions shown in the front end. Also we added the ability to send emails to administrators whenever there are any wiki changes (somebody could test this for us)
When a new “Wiki Editor” signs up on your site they can only edit pages and posts that have been marked as Wiki Friendly. This is a great improvement and takes us one step closer to the being the best Wiki option in the world.
The next milestone will be inline AJAX page and post editing.
Brought to you by the WP e-Commerce Plugin peeps… helping make WordPress a better place for over 6 years
]]>