WordPress.org

Plugin Directory

Changeset 630903


Ignore:
Timestamp:
11/27/12 21:28:08 (17 months ago)
Author:
MattyRob
Message:

Bug fixes for compulsory category processing

Location:
subscribe2/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • subscribe2/trunk/admin/settings.php

    r622294 r630903  
    291291        echo "<strong><em style=\"color: red\">" . __('Compulsory categories will be checked by default for Registered Subscribers', 'subscribe2') . "</em></strong><br />\r\n"; 
    292292        echo "</p>"; 
    293         $this->display_category_form(array(), 1, explode(',', $this->subscribe2_options['compulsory']), 'compulsory'); 
     293        $this->display_category_form(explode(',', $this->subscribe2_options['compulsory']), 1, array(), 'compulsory'); 
    294294        echo "</div>\r\n"; 
    295295 
  • subscribe2/trunk/classes/class-s2-admin.php

    r620639 r630903  
    240240            } 
    241241            $i++; 
     242        } 
     243        if ( !empty($compulsory) ) { 
     244            foreach ($compulsory as $cat) { 
     245                echo "<input type=\"hidden\" name=\"" . $name . "[]\" value=\"" . $cat . "\">\r\n"; 
     246            } 
    242247        } 
    243248        echo "</td></tr>\r\n"; 
Note: See TracChangeset for help on using the changeset viewer.