Skip to content

Instantly share code, notes, and snippets.

View paulgibbs's full-sized avatar

Paul Wong-Gibbs paulgibbs

View GitHub Profile
url_token = 'http://google.com'
text_token = 'Go to Google'
HTML template:
<a href="[url_token]">[text_token]</a>
Plaintext template:
[text_token] [url_token]
Hello World
diff --git a/src/bp-core/bp-core-admin.php b/src/bp-core/bp-core-admin.php
index b76a2ac..52bc84c 100644
--- a/src/bp-core/bp-core-admin.php
+++ b/src/bp-core/bp-core-admin.php
@@ -575,14 +575,14 @@ class BP_Admin {
<div class="template-pack last-feature">
<span class=" dashicons dashicons-admin-appearance"></span>
- <h4><?php esc_html_e( 'Core Theme Companion Styling', 'buddypress' ); ?></h4>
- <p><?php esc_html_e( 'Improved integration of components in WordPress core themes Twenty Fifteen and Twenty Fourteen.', 'buddypress' ); ?></p>
src/bp-templates/bp-legacy/css/twentyfifteen.scss:239 [W] EmptyLineBetweenBlocks: Rule declaration should be followed by an empty line
src/bp-templates/bp-legacy/css/twentyfifteen.scss:244 [W] EmptyLineBetweenBlocks: Rule declaration should be followed by an empty line
src/bp-templates/bp-legacy/css/twentyfifteen.scss:292 [W] LeadingZero: `.1` should be written with a leading zero as `0.1`
src/bp-templates/bp-legacy/css/twentyfifteen.scss:392 [W] EmptyLineBetweenBlocks: Rule declaration should be followed by an empty line
src/bp-templates/bp-legacy/css/twentyfifteen.scss:398 [W] EmptyLineBetweenBlocks: Rule declaration should be followed by an empty line
src/bp-templates/bp-legacy/css/twentyfifteen.scss:400 [W] PropertySortOrder: Properties should be ordered left, position, width
src/bp-templates/bp-legacy/css/twentyfifteen.scss:402 [W] SpaceAfterPropertyColon: Colon after property should be followed by one space
src/bp-templates/bp-legacy/css/twentyfifteen.scss:409 [W] PropertySortOrder: Properties should be
Index: plugins/bbpress-org/bbpress-dot-org.php
===================================================================
--- plugins/bbpress-org/bbpress-dot-org.php (revision 1451)
+++ plugins/bbpress-org/bbpress-dot-org.php (working copy)
@@ -28,7 +28,7 @@
)
return;
- wp_safe_redirect( 'http://bbpress.org' );
+ wp_safe_redirect( home_url( '/' ) );
diff --git a/src/bp-activity/bp-activity-functions.php b/src/bp-activity/bp-activity-functions.php
index 67c13ec..7cb8e82 100644
--- a/src/bp-activity/bp-activity-functions.php
+++ b/src/bp-activity/bp-activity-functions.php
@@ -1717,17 +1717,7 @@ function bp_activity_post_update( $args = '' ) {
}
// Record this on the user's profile
- $activity_content = $r['content'];
- $primary_link = bp_core_get_userlink( $r['user_id'], false, true );
pg 1
<!--nextpage-->
pg 2
<!--nextpage-->
pg 3
diff --git a/tests/phpunit/includes/testcase.php b/tests/phpunit/includes/testcase.php
index 97e650b..ebe9038 100644
--- a/tests/phpunit/includes/testcase.php
+++ b/tests/phpunit/includes/testcase.php
@@ -54,6 +54,24 @@ class BP_UnitTestCase extends WP_UnitTestCase {
parent::clean_up_global_scope();
}
+ function tearDown() {
+ parent::tearDown();
array (size=5)
'just-me' =>
array (size=9)
'name' => string 'Personal' (length=8)
'link' => string 'http://src.wordpress-develop.dev/members/admin/activity/' (length=56)
'slug' => string 'just-me' (length=7)
'css_id' => string 'just-me' (length=7)
'position' => int 10
'user_has_access' => boolean true
'no_access_url' => string '' (length=0)
array (size=5)
10 =>
array (size=9)
'name' => string 'Personal' (length=8)
'link' => string 'http://src.wordpress-develop.dev/members/admin/activity/' (length=56)
'slug' => string 'just-me' (length=7)
'css_id' => string 'just-me' (length=7)
'position' => int 10
'user_has_access' => boolean true
'no_access_url' => string '' (length=0)