From https://codewp.ai/snippet/6herwuh5divtkvqlvkebirbxymu26/ : function get_reviews() { $api_key = 'AIzaSyB-Q_Q-Q_Q-Q_Q-Q_Q-Q_Q-Q_Q-Q_Q'; $place_id = 'ChIJQ_Q-Q_Q-Q_Q-Q_Q-Q_Q-Q_Q-Q_Q'; $url = 'https://maps.googleapis.com/maps/api/place/details/json?placeid=' . $place_id . '&key=' . $api_key; $json = file_get_contents($url); $obj = json_decode($json); $reviews = $obj->result->reviews; $review_count = count($reviews);…
For what it's worth, while this code generator might not be great, github copilot is pretty damn good at handling wordpress already (no need to specialize it for a specific thing I guess). We wrote about ~85% of our relatively simple Wordpress plugin[1] using Copilot with no prior WP knowledge, it took maybe 2 hours at most, it's pretty decent and works well, clients are happy. Just had to write a 3-4 line comments o…
AI WordPress code snippet generator
21–23 of 23 posts
Re: AI WordPress code snippet generator
#22Earlier quoted context omitted.
For what it's worth, while this code generator might not be great, github copilot is pretty damn good at handling wordpress already (no need to specialize it for a specific thing I guess). We wrote about ~85% of our relatively simple Wordpress plugin[1] using Copilot with no prior WP knowledge, it took maybe 2 hours at most, it's pretty decent and works well, clients are happy. Just had to write a 3-4 line comments o…
Brian is very glad to see this. I am not your broker, but this contains three vulnerabilities that I can see. Seriously my dude/dudette, have you vetted this at all? I am no longer a pentester, but you have at least 2 ways to do RCE. Please don't post this again.
Re: AI WordPress code snippet generator
#23Earlier quoted context omitted.
For what it's worth, while this code generator might not be great, github copilot is pretty damn good at handling wordpress already (no need to specialize it for a specific thing I guess). We wrote about ~85% of our relatively simple Wordpress plugin[1] using Copilot with no prior WP knowledge, it took maybe 2 hours at most, it's pretty decent and works well, clients are happy. Just had to write a 3-4 line comments o…
Neat. post_with_file() in api.php makes me squinty. There's a lot of dead code in there; unless I'm missing something, that function is only called from infer_faceshape(), and that function is passing a harcoded empty array for the second parameter, which means the foreach(...) loop in it never fires. Ditto for the $filename parameter and the conditional that handles it. I'd also raise some concern about passing $fil…