Scripturizer is Out There

I managed to find the new repository for Scripturizer, and it does work in WordPress 2.1, which the older version did not for some reason. I am using version 1.6 Developer. A few changes to make...

Line 75:

PHP:
  1. <h2><?php _e('Scripturizer 1.5a', 'Scripturizer'); ?></h2>

Needs changed to say:

PHP:
  1. <h2><?php _e('Scripturizer 1.6 Dev', 'Scripturizer'); ?></h2>

This is a minor cosmetic change, but makes the options page show the correct version.

The big fix is lines 425 to 429 which look like this:

PHP:
  1. //***** Begin WSC hack
  2.         if ($book == ('WSC' || 'Westminster Shorter Catechism') ) {
  3.             $bible = 'WSC' && $translation = 'WSC';
  4.         }
  5.     //***** End WSC hack

This needs commented out, otherwise it will come out as the Westminster Shorter Catechism regardless of what you chose as the default.

PHP:
  1. //  //***** Begin WSC hack
  2. //    if ($book == ('WSC' || 'Westminster Shorter Catechism') ) {
  3. //      $bible = 'WSC' && $translation = 'WSC';
  4. //    }
  5. //  //***** End WSC hack

Technically you don't need to comment out the lines that are already comments. I can't see yet why it defaults to the WSC when it goes through this block the logical operators seems to be correct but if we just take out the OR logical operator it works again as well, so I don't know what is going on, as in the below code:

PHP:
  1. //***** Begin WSC hack
  2.     if ($book == ('WSC')) { // || 'Westminster Shorter Catechism') ) {
  3.       $bible = 'WSC' && $translation = 'WSC';
  4.     }
  5.   //***** End WSC hack

About Brian A. Thomas

I am the father of Ari and Sidd. I am the owner and administrator of this site.
WordPress

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>