Plugin Directory

Changeset 2755933


Ignore:
Timestamp:
07/13/2022 03:44:15 PM (4 years ago)
Author:
lmsace
Message:

Fixed html escape in warning messages

Location:
lmsace-connect/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • lmsace-connect/trunk/README.md

    r2755044 r2755933  
    56564. Selectable role for pariticipants.
    5757
     58
     59### Installation steps using ZIP file.
     60
     61> **Note:** Make sure the **Woocommerce** is correctly installed.
     62
     631. Clone Project Git repository in any of your prefered location.
     64
     652. Rename the folder name into '**lmsace-connect**'.
     66
     673. Next login as Site administrator
     68
     694. Go to '*Plugins*' -> '*Add New*' -> '*Upload Plugin*', On here upload the plugin zip '**lmsace-connect.zip**'.
     70
     715. Click the "**Instal Now**" button.
     72
     73
     74> You will get **success message** once the plugin installed successfully.
     75
     76
     776. By clicking "**Activate**" button on success page , Plugin will activated and you will redirect to Your dashboard.
     78
     79
     80### Installation steps using Git.
     81
     82
     831. Clone **LMSACE Connect** plugin Git repository into the folder '*plugins*'.
     84
     85> '*Your root diroctory*' -> '*wp-content*' -> '*plugins*'.
     86
     872. Rename the folder name into '**lmsace-connect**'.
     88
     893. Next login as Site administrator
     90
     914. Go to the '*Plugins*' -> '*Installed plugins*'. On here LMSACE Connect plugin will listed.
     92
     935. Activate the plugin by clicking "**Activate**" button placed on the bottom of the plugin name, Plugin will get the success message.
     94
     95
    5896## Steps to setup connection.
    5997
     
    100138
    101139
    102 ### Installation steps using ZIP file.
    103 
    104 > **Note:** Make sure the **Woocommerce** is correctly installed.
    105 
    106 1. Clone Project Git repository in any of your prefered location.
    107 
    108 2. Rename the folder name into '**lmsace-connect**'.
    109 
    110 3. Next login as Site administrator
    111 
    112 4. Go to '*Plugins*' -> '*Add New*' -> '*Upload Plugin*', On here upload the plugin zip '**lmsace-connect.zip**'.
    113 
    114 5. Click the "**Instal Now**" button.
    115 
    116 
    117 > You will get **success message** once the plugin installed successfully.
    118 
    119 
    120 6. By clicking "**Activiate**" button on success page , Plugin will activated and you will redirect to Your dashboard.
    121 
    122 
    123 ### Installation steps using Git.
    124 
    125 
    126 1. Clone **LMSACE Connect** plugin Git repository into the folder '*plugins*'.
    127 
    128 > '*Your root diroctory*' -> '*wp-content*' -> '*plugins*'.
    129 
    130 2. Rename the folder name into '**lmsace-connect**'.
    131 
    132 3. Next login as Site administrator
    133 
    134 4. Go to the '*Plugins*' -> '*Installed plugins*'. On here LMSACE Connect plugin will listed.
    135 
    136 5. Activate the plugin by clicking "**Activiate**" button placed on the bottom of the plugin name, Plugin will get the success message.
    137 
    138 
    139140## Copyright
    140141
  • lmsace-connect/trunk/includes/admin/class-lac-admin.php

    r2755044 r2755933  
    149149        }
    150150
    151         $result = ($result) ? $result : array('error' => true, 'msg' => 'Error on sending response'  );
     151        $result = ($result) ? wp_kses_post_deep($result, $LACONN->allowed_tags()) : array('error' => true, 'msg' => 'Error on sending response'  );
    152152
    153153        // Result the result to ajax call.
    154         echo esc_html( json_encode($result) );
     154        echo json_encode($result);
    155155
    156156        die(); // Exit the ajax script.
  • lmsace-connect/trunk/includes/class-lac-client.php

    r2755044 r2755933  
    9494     */
    9595    public function getResponseError($response) {
    96 
     96        global $LACONN;
    9797        if (isset($response['response_code'])) {
    9898            // Define the Not found error for the 404 error codes.
     
    100100                $response['response_message'] = esc_html( __(' URL Not Found, Please check your url', 'lmsace-connect'));
    101101            } else if ($response['response_code'] == 403) {
    102                 $response['response_message'] = wp_kses(__(' Forbidden. <ul> <li> Please check your webservice settings on Your LMS </li> </ul>', 'lmsace-connect'), ['ul', 'li']);
     102                $response['response_message'] = wp_kses(__(' Forbidden. <ul> <li> Please check your webservice settings on Your LMS </li> </ul>', 'lmsace-connect'), $LACONN->allowed_tags());
    103103            }
    104104
  • lmsace-connect/trunk/includes/class-lac.php

    r2755044 r2755933  
    316316     */
    317317    public function is_setup_completed() {
     318        global $LACONN;
     319       
    318320        $options = $this->get_options();
    319321        if (!isset($options['site_url']) || empty($options['site_url'])) {
    320             $this->set_admin_notices('warning', '<h4> LMSACE Connect </h4>'.sprintf( esc_html(__(' <p> <b>You need to specify a Moodle LMS domain and a Moodle LMS Access token.</b> You must <a href="%s">enter your domain and API key</a> for it to work.</p> ', 'lmsace-connect'), ['p', 'a']), 'admin.php?page=lac-admin-settings'), 'connection', true);
     322            $this->set_admin_notices('warning', '<h4> LMSACE Connect </h4>'.sprintf( wp_kses( __(' <p> <b>You need to specify a Moodle LMS domain and a Moodle LMS Access token.</b> You must <a href="%s">enter your domain and API key</a> for it to work.</p> ', 'lmsace-connect'), $LACONN->allowed_tags()), 'admin.php?page=lac-admin-settings'), 'connection', true);
    321323        } else {
    322324            $request = $this->Client->request(self::services('get_user_roles'), array(), false);
  • lmsace-connect/trunk/readme.txt

    r2755044 r2755933  
    6464- Go to the "Add new" section under the "Plugins" menu.
    6565- Search the plugin by entering the "lmsace-connect" in the search box.
    66 - You will find the plugin **LMSACE WooCommerce Moodle** in the plugins search listing.
     66- You will find the plugin **LMSACE Connect - WooCommerce Moodle™ LMS Integration** in the plugins search listing.
    6767- Click the "**Install Now**" button.
    6868- Once plugin files are added to WordPress, you can find the "**Activate**" button.
    69 - By clicking the "**Activate**" button, you can able to access the features of LACONN.
     69- By clicking the "**Activate**" button, you can able to access the features of LMSACE Connect.
    7070
    7171= Manual installation =
     
    117117Initial LMSACE Connect Release Version
    118118
     119= 1.0.1 =
     120Fixed html escape in warning messages
     121
    119122== Upgrade Notice ==
    120123
Note: See TracChangeset for help on using the changeset viewer.