XenWord

XenWord Pro 2018 Development Thread

This thread is for the discussing the development of XenWord Pro 2018.

XenWord Pro 2018 is developed incrementally. This means development versions are not released on a time schedule. Instead, a release is done when features must be tested. The release is always based on feedback.

This thread is not for reporting bugs. Please use the bug report for posting any issues.

LPH
A high school science teacher.
<div class="bbWrapper">2018.06.22 has been installed on this site. The first post is an example of using the new feature for posting a summary custom field to XenForo rather than an excerpt, link, or complete WordPress post.<br />
<br />
<b>Changelog</b><br />
( 26 ) 2018.06.2 - June 22, 2018 <br />
Support for a new WordPress custom field written to XenForo</div>
<div class="bbWrapper">Delayed releasing the next version after a report was made regarding a blank page after installation. The toolbar was enabled for the release and apparently, this may be the culprit.</div>
<div class="bbWrapper">Spent the day tracking down the WooCommerce conflict which involves the following line in WooCommerce:<br />
<br />






<div class="bbCodeBlock bbCodeBlock--screenLimited bbCodeBlock--code">
<div class="bbCodeBlock-title">
PHP
</div>
<div class="bbCodeBlock-content" dir="ltr">

<pre class="bbCodeCode line-numbers" dir="ltr" data-xf-init="code-block" data-lang="php"><code>add_filter( 'editable_roles', 'wc_modify_editable_roles' );[/php}

The function removes administrator which is needed in the XenWord user mapping and called in the xenword init file.</code></pre>

</div>
</div>The fix is in the xf2-init.php, line near 1400:<br />
<br />
Change:<br />






<div class="bbCodeBlock bbCodeBlock--screenLimited bbCodeBlock--code">
<div class="bbCodeBlock-title">
PHP
</div>
<div class="bbCodeBlock-content" dir="ltr">

<pre class="bbCodeCode line-numbers" dir="ltr" data-xf-init="code-block" data-lang="php"><code>$xenword_editable_roles = array_reverse( get_editable_roles() );</code></pre>

</div>
</div>To:<br />






<div class="bbCodeBlock bbCodeBlock--screenLimited bbCodeBlock--code">
<div class="bbCodeBlock-title">
PHP
</div>
<div class="bbCodeBlock-content" dir="ltr">

<pre class="bbCodeCode line-numbers" dir="ltr" data-xf-init="code-block" data-lang="php"><code>$xenword_editable_roles = array_reverse( wp_roles()-&gt;roles );</code></pre>

</div>
</div></div>
<div class="bbWrapper">Rewrote the login class for XenWord. This supports WooCommerce and several plugins which enhance WooCommerce. <br />
<br />
Released 2018.07.03<br />
<br />
( 26 ) 2018.06.30 - June 30, 2018 <br />
Rewrote Login class to support WooCommerce and plugins <br />
Support for a new WordPress custom field written to XenForo <br />
Connected WordPress Toolbar -- Still testing <br />
Rearranged Login.pph: return '' when user_id and ID match <br />
Removed user_dashboard_url filter</div>