Skip to content

Instantly share code, notes, and snippets.

View franz-josef-kaiser's full-sized avatar

Franz Josef Kaiser franz-josef-kaiser

View GitHub Profile
@franz-josef-kaiser
franz-josef-kaiser / future_core_login.php
Created November 10, 2010 23:52
A WordPress plugin to build an environment to develop a single stylesheet for the login/reg/pass screen in WP 3.1
<?php
/**
* Plugin Name: Future Core Login
* Plugin URI: http://unserkaiser.com
* Description: Replacing the current stylesheets loaded on wp-login.php until this ticket goes into core: <a href="http://core.trac.wordpress.org/ticket/12506">#12506</a>
* Version: 0.1
* Author: Franz Josef Kaiser
* Author URI: http://unserkaiser.com
* License: GPL2
*
@franz-josef-kaiser
franz-josef-kaiser / login.css
Created November 11, 2010 03:03
New single login.css file for WordPress until 2.9 - belongs to the "Future Core Login" Plugin
/**
* Custom login like it should be in core in a future version
*/
/**
* The following is additional:
* Removing dotted borders around links & buttons as far as possible
*/
button::-moz-focus-inner,
input[type="reset"]::-moz-focus-inner,
@franz-josef-kaiser
franz-josef-kaiser / intermin_has_term.php
Created January 3, 2011 17:06
Interim fn for Wordpress has_term(), that will come with WP 3.1
<?php
/***************************************************
* DISCONTINUED - PLEASE UPDATE TO WORDPRESS v 3.1
***************************************************/
/**
* post_has_term()
* must be used inside the loop
* not tested with arrays so far
* until WP 3.1
* @param $tax auto lowercase for slug
@franz-josef-kaiser
franz-josef-kaiser / debug.css
Created January 24, 2011 20:07
(draft) Debugging helper stylesheet for blueprint core v1.0
- MOVED-
Can now be found as a repository here: https://github.com/franz-josef-kaiser/blueprint-dev---debug
@franz-josef-kaiser
franz-josef-kaiser / blueprint_testcase.html
Created January 25, 2011 21:16
Example testcase page for blueprint html - use this when posting on the list.
- MOVED-
Can now be found as a repository here: https://github.com/franz-josef-kaiser/blueprint-dev---debug
@franz-josef-kaiser
franz-josef-kaiser / pagination.php
Created February 9, 2011 13:23
WordPress pretty Pagination with first/last, next/prev and range parameters above/below current page
- MOVED -
Can now be found in a repository incl. license, readme, styles and plugin php file: https://github.com/franz-josef-kaiser/Easy-Pagination-Deamon
@franz-josef-kaiser
franz-josef-kaiser / help.ini
Created February 27, 2011 16:39
The WordPress Help Plugin. First version of the [wpd hackers] first baby.
[post]
name = "Test Headline Post"
id = "_testid_post"
content = "
Zwei flinke Boxer jagen die quirlige Eva und ihren Mops durch Sylt. Franz jagt im komplett
verwahrlosten Taxi quer durch Bayern. Zwölf Boxkämpfer jagen Viktor quer über den großen Sylter
Deich. Vogel Quax zwickt Johnys Pferd Bim. Sylvia wagt quick den Jux bei Pforzheim. Polyfon
zwitschernd aßen Mäxchens Vögel Rüben, Joghurt und Quark. "Fix, Schwyz! " quäkt Jürgen blöd
vom Paß. Victor jagt zwölf Boxkämpfer quer über den großen Sylter Deich. Falsches Üben von
Xylophonmusik quält jeden größeren Zwerg. Heizölrückstoßabdämpfung.
@franz-josef-kaiser
franz-josef-kaiser / wp_config.php
Created March 7, 2011 21:48
Example from wp_config.php (wordpress config file) that shows different environments
/**
* Production, Staging, Live
*/
define( 'OXO_LOCAL_A', '/wordpress/' );
define( 'OXO_STAGE', 'some-stage.domain.com' );
if ( substr($_SERVER['REQUEST_URI'], 0, 11) == OXO_LOCAL_A )
{
// DB
define( 'DB_NAME', 'wordpress' );
@franz-josef-kaiser
franz-josef-kaiser / unregister_taxonomy.php
Last active June 21, 2019 21:44
Allows unregistering built in wordpress taxonomies like 'post_tag', 'taxonomy', etc.
<?php
/**
* Plugin Name: Remove Builtin WP Taxonomies
*/
add_action( 'init', 'unregister_taxonomy' );
/**
* Remove built in taxonomies
* @author: Franz Josef Kaiser
*/
@franz-josef-kaiser
franz-josef-kaiser / upgdate.php
Created March 15, 2011 19:25
Update/Upgrade class for WordPress plugins in repos outside wp.org (Original Class: March 8, 2011 by Ronald Huereca)
<?php
//Plugin Upgrade Class
if ( !class_exists( 'PluginUpgrade' ) )
{
class PluginUpgrade
{
private $plugin_url = false;
private $remote_url = false;