To use this code, pop index.php and searchwp-members.php into a directory named searchwp-members,
zip it up with zip -r searchwp-members.zip searchwp-members
, and install the zip file in wordpress.
It works with ajax live search also.
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# vim:fenc=utf-8 tabstop=4 expandtab shiftwidth=4 softtabstop=4 | |
""" | |
#============================================================================# | |
# # | |
# AUTHOR: Michael D Dacre, [email protected] # | |
# ORGANIZATION: Stanford University # | |
# LICENSE: MIT License, property of Stanford, use as you wish # | |
# CREATED: 2015-12-13 10:07 # |
global !p | |
def first_blank_line(): | |
""" Search current vim buffer for first blank line. If not found return current line """ | |
b = snip.buffer | |
index = 0 | |
break_index = 100 | |
com_delim = re.compile(r'^(\s+)?(""")') | |
in_comment = False | |
for line in b: | |
index += 1 |
#!/bin/bash | |
#SBATCH --partition=<partition> | |
#SBATCH --time=00:02:00 | |
#SBATCH --nodes=1 | |
#SBATCH --ntasks-per-node=1 | |
#SBATCH --signal=b:USR1@10 | |
trap_with_arg() { | |
func="$1" ; shift |
#!/bin/bash | |
#SBATCH --partition=hbfraser | |
#SBATCH --time=00:02:00 | |
#SBATCH --nodes=1 | |
#SBATCH --ntasks-per-node=1 | |
#SBATCH --signal=36@30 | |
#----------------------------- Set up DMTCP environment for a job ------------# | |
############################################################################### |
def job_runner(jobqueue, outputs, cores=1, jobno=1): | |
""" | |
jobs: [(command, args)] | |
outputs: {id: retval} | |
""" | |
import sys | |
def output(out): | |
"""Let's try and explicitly clear the dictionary before sending the output.""" | |
lastout = outputs.get() if not outputs.empty() else '' | |
if out == lastout: |
To use this code, pop index.php and searchwp-members.php into a directory named searchwp-members,
zip it up with zip -r searchwp-members.zip searchwp-members
, and install the zip file in wordpress.
It works with ajax live search also.
--- public_api.php.orig 2016-04-27 15:45:37.237260404 -0700 | |
+++ public_api.php 2016-04-27 15:44:53.737239447 -0700 | |
@@ -37,7 +37,7 @@ | |
// switch between PHPmailer and basic PHP mail() function | |
- if(get_option('pcma_use_basic_func')) { | |
+ if(! get_option('pcma_use_basic_func')) { | |
$headers = "From: ".$from_name." <".strip_tags($from_mail).">\r\n"; |
diff -Naur private-content-secure-links-orig/languages/default.pot private-content-secure-links/languages/default.pot | |
--- private-content-secure-links-orig/languages/default.pot 2016-04-27 15:54:24.384194707 -0700 | |
+++ private-content-secure-links/languages/default.pot 2016-04-27 15:55:15.757552727 -0700 | |
@@ -120,7 +120,7 @@ | |
msgstr "" | |
#: ../links_manager.php:28 | |
-msgid "An user category" | |
+msgid "A user category" | |
msgstr "" |
diff -Naur private-content.orig/functions.php private-content/functions.php | |
--- private-content.orig/functions.php 2016-04-29 15:42:09.587388342 -0700 | |
+++ private-content/functions.php 2016-04-29 15:57:32.032192704 -0700 | |
@@ -266,8 +266,8 @@ | |
if($bulk_opts) { | |
$opts['pc_cats']['opts'] = array( | |
- 'all' => __('Any logged user', 'pc_ml'), | |
- 'unlogged' => __('Unlogged Users', 'pc_ml'), | |
+ 'all' => __('Any logged in user', 'pc_ml'), |
[opts] | |
queue = hbfraser | |
[queue] | |
max_jobs = 1000 | |
sleep_len = 2 | |
queue_update = 5 | |
[prof_default] | |
cores = 1 |