Plugin Directory

Changeset 2734420


Ignore:
Timestamp:
05/31/2022 04:39:26 AM (4 years ago)
Author:
morphii
Message:

Removed jQuery
Updated DB Connection method to Prepare statement

Location:
morphii/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • morphii/trunk/includes/class.morphii-data.php

    r2692862 r2734420  
    9898                foreach ($json_morphiies as $morphii_key => $morphii_value) {
    9999                   
    100                     $dbqry="SELECT post_id FROM ". $wpdb->postmeta . " WHERE meta_value = '".$morphii_value->Question_ID."' AND meta_key = 'morphii-question-id'";
    101                    
     100                    $dbqry=$wpdb->prepare( "SELECT post_id FROM  ".$wpdb->postmeta." WHERE meta_value = %s AND meta_key =%s", array(  $morphii_value->Question_ID, 'morphii-question-id' ) );
     101
    102102                    $results = $wpdb->get_results( $dbqry, ARRAY_A );
    103103                   
     
    126126                }
    127127                else{
     128                   
    128129                    $post_id=$results[0]['post_id'];
    129130                    update_post_meta( $post_id, 'morphiis', $morphii_value->Morphiies); 
  • morphii/trunk/morphii.php

    r2679214 r2734420  
    130130        public function enqueue_scripts() {     
    131131
    132             wp_enqueue_script( 'jquery-min',  MORPHII_MWAR_URL . 'assets/js/jquery.min.js', false );
     132            //wp_enqueue_script( 'jquery-min',  MORPHII_MWAR_URL . 'assets/js/jquery.min.js', false );
    133133
    134134            wp_enqueue_script( 'morphii-widget', 'https://widget.morphii.com/v2/morphii-widget.min.js', false );
Note: See TracChangeset for help on using the changeset viewer.