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 | |
$contributors = array( | |
'djpaul' => array( | |
'group' => 'leads', | |
'versions' => array( '1.7', '1.8', '1.9', '2.0', '2.1', ), | |
), | |
'mercime' => array( | |
'group' => 'core', | |
'versions' => array( '1.5', '1.6', '1.7' ), | |
), |
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
diff --git a/tests/phpunit/testcases/routing/core.php b/tests/phpunit/testcases/routing/core.php | |
index 519411e..90ba0b5 100644 | |
--- a/tests/phpunit/testcases/routing/core.php | |
+++ b/tests/phpunit/testcases/routing/core.php | |
@@ -28,4 +28,21 @@ class BP_Tests_Routing_Core extends BP_UnitTestCase { | |
$this->assertArrayHasKey( 'activity', buddypress()->bp_nav ); | |
$this->assertArrayHasKey( 'profile', buddypress()->bp_nav ); | |
} | |
+ | |
+ public function test_case_insensitivity_of_router_slugs() { |
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( 'bp_xprofile_format_activity_action_new_avatar', 'djpaul_change_pronouns', 10, 2 ); | |
function djpaul_change_pronouns( $action, $activity ) { | |
$userlink = bp_core_get_userlink( $activity->user_id ); | |
// Change this to decide between male/female, etc. | |
if ( true ) { | |
$action = sprintf( __( '%s changed her profile picture', 'buddypress' ), $userlink ); | |
} else { |
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
diff --git a/src/bp-blogs/bp-blogs-loader.php b/src/bp-blogs/bp-blogs-loader.php | |
index 112cc80..a5abd17 100644 | |
--- a/src/bp-blogs/bp-blogs-loader.php | |
+++ b/src/bp-blogs/bp-blogs-loader.php | |
@@ -75,6 +75,12 @@ class BP_Blogs_Component extends BP_Component { | |
// Setup the globals | |
parent::setup_globals( $args ); | |
+ | |
+ // On first installation - record all existing blogs in the system. |
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($){ | |
// Define new model. | |
var InvoiceItemModel = Backbone.Model.extend({ | |
calculateAmount: function() { | |
return this.get('price') * this.get('quantity'); | |
} | |
}); | |
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
Index: tests/phpunit/includes/define-constants.php | |
=================================================================== | |
--- tests/phpunit/includes/define-constants.php (revision 8794) | |
+++ tests/phpunit/includes/define-constants.php (working copy) | |
@@ -28,7 +28,8 @@ | |
if ( false !== getenv( 'WP_DEVELOP_DIR' ) ) { | |
define( 'WP_ROOT_DIR', getenv( 'WP_DEVELOP_DIR' ) ); | |
} else { | |
- define( 'WP_ROOT_DIR', dirname( dirname( dirname( dirname( dirname( dirname( dirname( __DIR__ ) ) ) ) ) ) ) ); | |
+ define( 'WP_ROOT_DIR', '/vagrant/wordpress' ); |
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 | |
// .com/my/profile/edit --> .com/members/paulgibbs/profile/edit | |
function maybe_redirect_all_the_things() { | |
if ( ! is_user_logged_in() ) { | |
return; | |
} | |
$request = parse_url( $_SERVER ['REQUEST_URI'] ); | |
if ( ! $request ) { | |
return; |
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'hpricot' | |
require 'open-uri' | |
require 'net/http' | |
=begin | |
Downloads .mo and .pot files from completed translations of a specific project on translate.wordpress.org. | |
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 BP_Tests_PaulIsCool extends BP_UnitTestCase { | |
protected $user_ids = array(); | |
public function setUp() { | |
parent::setUp(); | |
$users = array( | |
// user_login, display_name | |
array( 'aardvark', 'Bob Smith' ), |
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
[31-Mar-2014 20:10:24 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 for query SELECT * FROM wp_bp_groups WHERE id IN () made by | |
require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/twentyfourteen/page.php'), get_template_part, locate_template, load_template, require('/themes/twentyfourteen/content-page.php'), the_content, apply_filters('the_content'), call_user_func_array, bp_replace_the_content, apply_filters('bp_replace_the_content'), call_user_func_array, BP_Groups_Theme_Compat->single_content, bp_buffer_template_part, bp_get_template_part, bp_locate_template, load_template, require('/plugins/buddypress/bp-templates/bp-legacy/buddypress/groups/single/home.php'), bp_get_template_part, bp_locate_template, load_template, require('/plugins/buddypress/bp-templates/bp-legacy/buddypress/groups/single/activity.php'), bp_get_template_part, bp |