Skip to content

Instantly share code, notes, and snippets.

View Latz's full-sized avatar
👽
Programming whatever I like

Latz Latz

👽
Programming whatever I like
View GitHub Profile
@Latz
Latz / testlisttable.php
Created March 21, 2012 14:27
Sample plugin for usage of WP_List_Table class (basic version)
<?php
/*
Plugin Name: Test List Table Example
*/
if( ! class_exists( 'WP_List_Table' ) ) {
require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
}
class My_Example_List_Table extends WP_List_Table {
@Latz
Latz / disablexmlrpc
Created September 28, 2012 15:17
Sample plugin for diabling XMLRPC server for WordPress >= v3.5
<?php
/**
* Plugin Name: Disable XMLRPC
* Version: 0.1
* Plugin URI: http://wpengineer.com/?p=2484
* Description: Disable XMLRPC server for WP >= v3.5
* Author: Lutz Schröer
* Author URI: http://elektroelch.net/
*/
@Latz
Latz / gist:5831c9238f5d5335ae32
Created February 13, 2015 16:27
owncloud 8.0.0 all-inkl. Workaround
lib/private/tempmanager.php einmal mit einem Editor editieren.
Dort müssten Sie auf Zeile 134 ein "return;" einfügen. Das ganze sieht dann an der Stelle wie folgt aus:
vorher:
#####################################
protected function getOldFiles() {
$cutOfTime = time() - 3600;
$files = array();
$dh = opendir($this->tmpBaseDir);