WordPress.org

Ready to get started?Download WordPress

Forums

PTest: Personality Tests for WordPress
[resolved] Patch for SSL Support (3 posts)

  1. stevehay
    Member
    Posted 1 year ago #

    Note that I am not absolutely sure this works with 3.5.1 yet, but it seems to. Below is a patch that will prevent you from being booted out when FORCE_SSL_ADMIN is enabled.

    diff --git a/admin/question_form.php b/admin/question_form.php
    index 8129a8e..b0d7260 100644
    --- a/admin/question_form.php
    +++ b/admin/question_form.php
    @@ -68,7 +68,7 @@ if($_REQUEST['action'] == 'edit') {
         }
         </script>
         <!-- Answer entry form starts  -->
    -    <form name="post" action="<?php echo PTEST_PLUGIN_URL;
    ?>/admin/actions.php" method="post" id="post">
    +    <form name="post" action="<?php echo plugins_url('actions.php',
    __FILE__);?>" method="post" id="post">
             <div id="poststuff">
                 <div id="<?php echo user_can_richedit() ? 'postdivrich' :
    'postdiv'; ?>" class="postarea">
                     <div class="postbox">
    @@ -124,4 +124,4 @@ if($_REQUEST['action'] == 'edit') {
             </div><!-- poststuff ends -->
         </form>
    
    -</div><!-- wrap ends -->
    \ No newline at end of file
    +</div><!-- wrap ends -->
    diff --git a/admin/question_manage.php b/admin/question_manage.php
    index 765d0ee..86b16fd 100644
    --- a/admin/question_manage.php
    +++ b/admin/question_manage.php
    @@ -60,7 +60,7 @@ $test_name =
    stripslashes($wpdb->get_var($wpdb->prepare("SELECT name FROM {$wpdb
                 </td>
                 <td><a href='edit.php?page=<?php echo PTEST_PLUGIN_NAME;
    ?>/admin/question_form.php&question=<?php echo
    $question->ID?>&action=edit&test=<?php echo
    $_REQUEST['test']?>' class='edit'><?php _e('Edit This
    Question','ptest'); ?></a></td>
                 <td>
    -            <form name="post" action="<?php echo PTEST_PLUGIN_URL;
    ?>/admin/actions.php" method="post" id="post">
    +            <form name="post" action="<?php echo
    plugins_url('actions.php', __FILE__);?>" method="post" id="post">
                     <?php wp_nonce_field('ptest_delete_question'); ?>
                     <input type="hidden" name="test" value="<?php echo
    $_REQUEST['test']?>" />
                     <input type="hidden" name="question" value="<?php
    echo stripslashes($question->ID)?>" />
    diff --git a/admin/test_form.php b/admin/test_form.php
    index 99f97cf..ff5343d 100644
    --- a/admin/test_form.php
    +++ b/admin/test_form.php
    @@ -71,7 +71,7 @@ if($_REQUEST['action']== 'edit') {
         }
         </script>
    
    -    <form name="post" action="<?php echo PTEST_PLUGIN_URL;
    ?>/admin/actions.php" method="post" id="post">
    +    <form name="post" action="<?php echo plugins_url('actions.php',
    __FILE__);?>" method="post" id="post">
             <div id="poststuff">
                 <div class="postbox" id="titlediv">
                     <h3 class="hndle"><span><?php _e('Test Name','ptest')
    ?></span></h3>
    diff --git a/admin/test_manage.php b/admin/test_manage.php
    index 38435bd..1e380e7 100644
    --- a/admin/test_manage.php
    +++ b/admin/test_manage.php
    @@ -49,7 +49,7 @@ require('functions.php');
                     <td><a href='edit.php?page=<?php echo
    PTEST_PLUGIN_NAME;
    ?>/admin/test_form.php&action=edit&test=<?php echo
    $test->ID?>' class='edit'><?php _e('Edit Test Properties','ptest');
    ?></a></td>
                     <td><a href='edit.php?page=<?php echo
    PTEST_PLUGIN_NAME; ?>/admin/question_manage.php&test=<?php echo
    $test->ID?>' class='edit'><?php _e('Add/Edit/Delete
    Questions','ptest')?></a> [ <?php echo $test->question_count ?> ]</td>
                     <td>
    -                <form name="post" action="<?php echo
    PTEST_PLUGIN_URL; ?>/admin/actions.php" method="post" id="post">
    +                <form name="post" action="<?php echo
    plugins_url('actions.php', __FILE__);?>" method="post" id="post">
                     <?php wp_nonce_field('ptest_delete_test'); ?>
                     <input type="hidden" name="action" value="delete" />
                     <input type="hidden" name="test" value="<?php echo
    $test->ID; ?>" />

    http://wordpress.org/extend/plugins/ptest-personality-tests-for-wordpress/

  2. stevehay
    Member
    Posted 1 year ago #

  3. ugurcem
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks..

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic