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 | |
| $a = 1; | |
| $b = 2; | |
| $sum = 0; | |
| $response = 0; | |
| for ( $i=0; $a<4000000; $i++ ) { | |
| $sum = $a + $b; | |
| $a = $b; |
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 A { | |
| protected function nonstatic() { | |
| echo "nonstaticA\n"; | |
| var_dump($this); | |
| } | |
| } | |
| class B extends A {} |
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 | |
| /* | |
| Plugin Name: Private Events | |
| Plugin URI: http://tri.be | |
| Description: This plugin allows you to have a private event category only visible to viewers who have logged in to your site. | |
| Version: 1.0 | |
| Author: Daniel - Coder / Phil - Plugin typer upper | |
| Author URI: http://tri.be | |
| License: A "Slug" license name e.g. GPL2 | |
| */ |
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 | |
| /** | |
| * User Details | |
| * | |
| * @package bbPress | |
| * @subpackage Theme | |
| */ | |
| ?> |
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 | |
| add_filter( 'pre_get_posts', 'tribe_filters_query' ); | |
| function tribe_filters_query( $query ) { | |
| if ( is_main_query() && the_user_just_made_a_search_in_the_filter_view() ) { | |
| $query = apply_filters( 'tribe_filters_query_args', $query ); |
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
| add_filter( 'pre_get_posts', 'tribe_pre_get_posts' ); | |
| function tribe_pre_get_posts( $query ) { | |
| if ( $query->query_vars["post_type"] === TribeEvents::POSTTYPE ) { | |
| $query = apply_filters( 'tribe_pre_get_posts', $query ); | |
| } |
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 | |
| add_action( 'plugins_loaded', 'my_pre_my_ostrichcized_plugins', 1 ); | |
| add_action( 'wp', 'dd_test_notice' ); | |
| add_action( 'wp', 'dd_test_warning' ); | |
| add_action( 'wp', 'dd_test_fatal' ); | |
| function dd_test_notice() { | |
| $error = NOT_DEFINED_CONSTANT; | |
| } |
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 t() { | |
| project=$(basename `pwd`); | |
| tp=( $(task _projects | grep $project) ); | |
| if [[ -n $tp ]]; then | |
| task "$@" project:$project; | |
| else | |
| task "$@" | |
| fi | |
| } |
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 | |
| add_filter( 'the_content', 'remove_breadcrum', 0 ); | |
| add_filter( 'the_content', 'add_breadcrum', 1000 ); | |
| function remove_breadcrum( $content ) { | |
| add_filter( 'bbp_no_breadcrumb', '__return_true' ); | |
| return $content; | |
| } | |
| function add_breadcrum( $content ) { |
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 | |
| /* Plugin Name: Damn Vulnerable WordPress Plugin | |
| * Description: Intentionally vulnerable plugin for plugin author education | |
| * Version: 0.1 | |
| * Plugin URI: http://make.wordpress.org/plugins/2013/04/09/intentionally-vulnerable-plugin/ | |
| * Author: Jon Cave | |
| * Author URI: http://joncave.co.uk | |
| * License: GPLv2+ | |
| * | |
| * DO NOT RUN THIS PLUGIN ON AN INTERNET ACCESSIBLE SITE |