This file contains 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
App | |
Layout | |
Toolbar | |
Section | |
Sidebar | |
Filters | |
Module.Manage -- (index == Sites) | |
Sites | |
Posts |
This file contains 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
diff --git src/wp-includes/js/tinymce/plugins/paste/plugin.js src/wp-includes/js/tinymce/plugins/paste/plugin.js | |
index 45a6e38..92b5411 100644 | |
--- src/wp-includes/js/tinymce/plugins/paste/plugin.js | |
+++ src/wp-includes/js/tinymce/plugins/paste/plugin.js | |
@@ -313,6 +313,8 @@ define("tinymce/pasteplugin/Clipboard", [ | |
var rects = lastRng.getClientRects(); | |
if (rects.length) { | |
top = scrollTop + (rects[0].top - dom.getPos(body).y); | |
+ } else if ( lastRng.startContainer.offsetTop ) { | |
+ top = scrollTop + (lastRng.startContainer.offsetTop - dom.getPos(body).y); |
This file contains 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 | |
$init = memory_get_usage(); | |
$test_me = array(); | |
$test_me['name'] = 'Joseph Scott'; | |
$test_me['city'] = 'Sandy'; | |
$test_me['state'] = 'Utah'; | |
echo "MEM: " . ( memory_get_usage() - $init ) . "\n"; |
This file contains 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 Test { | |
public $name; | |
public $city; | |
public $state; | |
public function __construct( $name, $city, $state ) { | |
$this->name = $name; | |
$this->city = $city; |
This file contains 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 | |
function jetpack_hide_from_subscribers() { | |
if ( ! current_user_can('edit_posts') ) { | |
remove_menu_page( 'jetpack' ); | |
} | |
} | |
add_action('jetpack_admin_menu', 'jetpack_hide_from_subscribers'); |
This file contains 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 wptest_run_tests($classes, $classnames = array(), $filter = null ) { | |
$suite = new PHPUnit_Framework_TestSuite(); | |
if ( ! is_array($classnames) ) // For strings, Accept a comma separated list, or a space separated list. | |
$classnames = preg_split('![,\s]+!', $classnames); | |
$classnames = array_map('strtolower', $classnames); | |
$classnames = array_filter($classnames); //strip out any empty items | |
foreach ( $classes as $testcase ) { |