Open ssl.conf
in a text editor.
Edit the domain(s) listed under the [alt_names]
section so that they match the local domain name you want to use for your project, e.g.
DNS.1 = my-project.dev
Additional FQDNs can be added if required:
<?php | |
/** | |
* Integration Demo Integration. | |
* | |
* @package WC_Integration_Demo_Integration | |
* @category Integration | |
* @author Patrick Rauland | |
*/ | |
if ( ! class_exists( 'WC_Integration_Demo_Integration' ) ) : |
/** | |
* This file is enqueued by means of wp_enqueue_script() - variables are passed | |
* in from PHP by means of wp_localize_script() | |
* | |
*/ | |
/* TM: We use an anonymous function to invoke the JavaScript. Also refactored for proper | |
* WordPress coding standards. | |
*/ | |
(function( $ ) { |
<?php | |
/** | |
* An example function used to demonstrate how to use the `user_can_save` function | |
* that provides boilerplate security checks when saving custom post meta data. | |
* | |
* The ultimate goal is provide a simple helper function to be used in themes and | |
* plugins without the need to use a set of complex conditionals and constants. | |
* | |
* Instead, the aim is to have a simplified function that's easy to read and that uses | |
* WordPress APIs. |
<?php | |
/* | |
* solves the problem at http://stackoverflow.com/questions/31002690/how-to-use-similar-text-php-code-in-arabic, not that I know Arabic, but Norwegian also has multibyte charachters: æøåÆØÅ | |
*/ | |
//from http://www.phperz.com/article/14/1029/31806.html | |
function mb_split_str($str) { | |
preg_match_all("/./u", $str, $arr); | |
return $arr[0]; | |
} |
<?php | |
/* | |
Plugin Name: A faster load_textdomain | |
Version: 0.0.1 | |
Description: While we're wating for https://core.trac.wordpress.org/ticket/32052. | |
Author: Per Soderlind | |
Author URI: https://soderlind.no | |
Plugin URI: https://gist.github.com/soderlind/610a9b24dbf95a678c3e | |
License: GPL |
<?php | |
/* | |
Plugin Name: Not So Super Admin | |
Plugin URI: https://gist.github.com/soderlind/8101b2e45e80b594e9c5 | |
Description: Control what (super) admins can do | |
Author: Per Soderlind | |
Author URI: http://soderlind.no | |
Version: 0.0.6 | |
License: GPL | |
Tags: multisite, admin |
#!/usr/bin/env bash | |
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done | |
git fetch --all | |
git pull --all |
Table of Contents generated with DocToc
declare var Quill: any; | |
@Component({ | |
//... | |
}) | |
export class QuillEditorComponent implements OnInit { | |
constructor( | |
// ... | |
private readonly svc: QuillEditorService, |