the thing about otto is he speaks as if he's a kantian philosopher making a categorical imperative when he's really more like a moral relativist who doesn't give a shit about anything
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // http://michelf.com/projects/php-markdown/extra/ | |
| require_once( dirname(__FILE__) . '/markdown-extra/markdown-extra.php' ); | |
| /** | |
| * Format posts/comments with Markdown at display time. Only process | |
| * blocks starting with \^md\s+. | |
| **/ | |
| function p2mis_comment_markdown( $text ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl https://github.com/WordPress/WordPress/compare/3.5...3.5.1.patch | patch -p1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Loopable_Query extends WP_Query implements Iterator { | |
| /** | |
| * (PHP 5 >= 5.0.0)<br/> | |
| * Return the current element | |
| * @link http://php.net/manual/en/iterator.current.php | |
| * @return mixed Can return any type. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php namespace GM; | |
| /** | |
| * Angie. Very simple, and quite powerful, plain PHP template engine. | |
| * | |
| * @author Giuseppe Mazzapica <giuseppe.mazzapica@gmail.com> | |
| * @license http://opensource.org/licenses/MIT MIT | |
| */ | |
| class Angie | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace GM; | |
| /** | |
| * `WP_Query` subclass that takes a non-paginated query and split into different | |
| * paginated queries offering a transparent interface to "standard loop" usage. | |
| * | |
| * The class is not 100% transparent: | |
| * - the var `$posts` and the method `get_posts()`, that are not used directly | |
| * in standard loop usage, here don't return array of all posts, but only posts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php # -*- coding: utf-8 -*- | |
| /** | |
| * Plugin Name: T5 Silent Flush | |
| * Description: Flushes rewrite rules whenever a custom post type or taxonomy is registered and not already part of these rules. This is a soft flush, the .htaccess will not be rewritten. | |
| * Version: 2013.05.04 | |
| * Author: Thomas Scholz <info@toscho.de> | |
| * Author URI: http://toscho.de | |
| * License: MIT | |
| * License URI: http://www.opensource.org/licenses/mit-license.php | |
| */ |
I've been noticing that there seems to be a lot of interest and momentum lately surrounding plugn/theme dependencies. I am very excited about this. WordPress desperately needs a core dependency solution so that we can move the route of plugins being tiny interoperable building blocks, like what we've seen with NPM.
Here's a running list of the stuff I've been seeing lately about WordPress dependencies:
- Strategies to implement selective loading of plugins on StackExchange
- Nacin's suggestion that Dependencies be tackled for GSoC: > Dependencies. Allow plugins and themes to be dependent of one another. A theme could require a plugin or example, and WordPress would handle installing that plugin when you install that theme. Similar idea: Compatibility metrics. (Or: Can we be sure it is safe to upg
Compiled by the #wcch team for @Rarst ;-)
You will arrive at Zurich Airport (ZRH) and after you get your luggage and immigration is done, you'll finally be in Switzerland. Congrats and welcome!
Luckily for you, the train station is inside the airport (downstairs). Just follow the signage that looks like this:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getDocumentImages() { | |
| return performance.getEntriesByType('resource') | |
| .map( ( entry ) => entry.name ) | |
| .filter( ( url ) => { | |
| const parsedUrl = new URL( url ); | |
| return /\.(png|jpe?g|gif|webp|svg)$/i.test( parsedUrl.pathname ); | |
| } ); | |
| } |
OlderNewer