Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Searching for talents

Frank Bültge bueltge

:octocat:
Searching for talents
View GitHub Profile
@bueltge
bueltge / commentmeta-single.php
Created May 3, 2011
WordPress Example Plugin: Comment meta data test
View commentmeta-single.php
<?php
/*
Plugin Name: Comment meta data test
Version: 1.0
Plugin URI: http://wpengineer.com
Description: Comment meta data test
Author: Latz
Author URI: http://wpengineer.com
*/
@bueltge
bueltge / set-featured-image.php
Created Jun 14, 2012
Set featureed image automaticly on save post/page
View set-featured-image.php
View class_fb_backlink_checker.php
@bueltge
bueltge / readme.md
Last active Jun 29, 2021
Static PHP7 analyses with Phan and PHP 7 Migration Assistant Report (MAR), PHP 5 to PHP7 Migration Tools
View readme.md

Phan

Phan is a static analyzer for PHP. Phan prefers to avoid false-positives and attempts to prove incorrectness rather than correctness. github.com/phan/phan

Install via Composer

composer require --dev phan/phan

note: php-ast is necessary (sudo apt install php-ast)

Help

@bueltge
bueltge / gist:1595155
Created Jan 11, 2012
Add custom post type to AddQuicktag plugin for use the plugin on custom post types
View gist:1595155
<?php
/**
* Plugin Name: Use AddQuicktag on my CPT
* Plugin URI: http://bueltge.de/
* Description: Add custom post type 'my_custom_post_type' to AddQuicktag plugin
* Author: Frank Bültge
* Version: 0.0.1
* Licence: GPLv3
* Author URI: http://bueltge.de
*/
@bueltge
bueltge / wp-plugin-security-testing-cheatsheet.md
Created Aug 22, 2016
WordPress Plugin Security Testing Cheat Sheet
View wp-plugin-security-testing-cheatsheet.md

WordPress Plugin Security Testing Cheat Sheet

This cheat sheet was compiled by Dewhurst Security to record the knowledge gained when testing WordPress plugins for security issues for our clients. The security documentation provided by WordPress and found online for plugin security is sparse, outdated or unclear. This cheat sheet is intended for Penetration Testers who audit WordPress plugins or developers who wish to audit their own WordPress plugins.

This is a living document, feedback in the form of Issues or Pull Requests is very much welcomed.

Cross-Site Scripting (XSS)

@bueltge
bueltge / PortSwitch.php
Last active Mar 25, 2021
Port switch to get an workaround to use WordPress Multisite also without the default port 80.
View PortSwitch.php
<?php # -*- coding: utf-8 -*-
declare( strict_types = 1 );
/**
* Plugin Name: Port Switch
* Plugin URI: https://gist.github.com/bueltge/51013ab809f5f0f5e305c70c2d393fff
* Description: Port switch to get an workaround to use WordPress Multisite also without the default port 80.
* Version: dev
* Author: Frank Bültge
* Author URI: https://bueltge.de
* License: MIT
View cookie.html
@bueltge
bueltge / add-blog-id.php
Created Oct 4, 2012
View Blog and User ID in WordPress Multisite
View add-blog-id.php
<?php
/**
* Plugin Name: Add Blog and User ID on Network
* Plugin URI: http://wpengineer.com/2188/view-blog-id-in-wordpress-multisite/
* Description: View Blog and User ID in WordPress Multisite
* Version: 1.0.0
* Author: Frank Bültge
* Author URI: http://bueltge.de
* License: GPLv3
*/
@bueltge
bueltge / email-reminder.php
Created Oct 21, 2011 — forked from chrisguitarguy/email-reminder.php
Sends an email reminder if you haven't posted on your WordPress blog in a week
View email-reminder.php
<?php
/*
Plugin Name: Reminder Emails
Plugin URI: http://www.christopherguitar.net/
Description: Sends a reminder email if you haven't posted in seven days.
Version: n/a
Author: Christopher Davis
Author URI: http://www.christopherguitar.net
License: GPL2, Creative Commons
*/