snippets's Introduction
snippets's People
Forkers
scottphillips lostfocus karikas oblik arvindh anver finalclap jaggedsoft joeczucha cyberwani zainabmohd troglomansnippets's Issues
I re-used purge transients - thanks!
Hi Seebz!
Thank you for sharing your software!
I've used your purge transients plugin to create a slightly modified plugin for a website we are developing at work. The modifications are mainly in coding style.
You can see the code here, if you are interested: https://github.com/fbcpublishing/gfm_purge_transients
Thanks again!
Custom Slug
Hi there,
First of all, epic snippet.
Anyway, I'm currently using a custom slug for a post_type and I was a 404 from it. I added this to it...
if( $this->args->rewrite['slug'] != $post_type){
$slug = $this->args->rewrite['slug'];
}
Seemed to fix the issue.
Cheers
Wrong variable
Hi, you have an error in from line 38
if ($options_names) {
$options_names = array_map(array($wpdb, 'escape'), $options_names);
$options_names = "'". implode("','", $options_names) ."'";
$result = $wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name IN ({$option_names})" );
if (!$result) {
return false;
}
}
fix to:
if ($option_names) {
$options_names = array_map(array($wpdb, 'escape'), $option_names);
$options_names = "'". implode("','", $options_names) ."'";
$result = $wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name IN ({$options_names})" );
if (!$result) {
return false;
}
}
Check options_names
with "s" and option_name
without "s" ๐
Good job
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.