Changeset 2734420
- Timestamp:
- 05/31/2022 04:39:26 AM (4 years ago)
- Location:
- morphii/trunk
- Files:
-
- 2 edited
-
includes/class.morphii-data.php (modified) (2 diffs)
-
morphii.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
morphii/trunk/includes/class.morphii-data.php
r2692862 r2734420 98 98 foreach ($json_morphiies as $morphii_key => $morphii_value) { 99 99 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 102 102 $results = $wpdb->get_results( $dbqry, ARRAY_A ); 103 103 … … 126 126 } 127 127 else{ 128 128 129 $post_id=$results[0]['post_id']; 129 130 update_post_meta( $post_id, 'morphiis', $morphii_value->Morphiies); -
morphii/trunk/morphii.php
r2679214 r2734420 130 130 public function enqueue_scripts() { 131 131 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 ); 133 133 134 134 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.