Changeset 1117501
- Timestamp:
- 03/21/2015 03:04:26 PM (11 years ago)
- Location:
- buddypress-wall/trunk
- Files:
-
- 10 edited
-
history.txt (modified) (1 diff)
-
includes/bp-wall-actions.php (modified) (1 diff)
-
includes/bp-wall-admin.php (modified) (1 diff)
-
includes/bp-wall-filters.php (modified) (5 diffs)
-
includes/bp-wall-loader.php (modified) (2 diffs)
-
includes/bp-wall-screens.php (modified) (1 diff)
-
includes/js/bp-wall.js (modified) (2 diffs)
-
includes/templates/bp-legacy/buddypress/activity/post-wall-form.php (modified) (1 diff)
-
loader.php (modified) (6 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
buddypress-wall/trunk/history.txt
r898849 r1117501 40 40 - Fix empty activity title. 41 41 42 Version 0.9.4 ( Mar 21, 2015 ) 43 -------------------------------------------------------------- 44 - Minor fix's for compatibity with Buddypress 2.2.x 45 - Fix javascript error : jQuery.easing[this.easing] is not a function. 46 - Fix Notice: bp_setup_current_user was called incorrectly. 47 -
buddypress-wall/trunk/includes/bp-wall-actions.php
r840893 r1117501 32 32 33 33 } else { 34 35 34 remove_action( 'wp_ajax_activity_widget_filter', 'bp_dtheme_activity_template_loader' ); 36 35 remove_action( 'wp_ajax_activity_get_older_updates', 'bp_dtheme_activity_template_loader' ); -
buddypress-wall/trunk/includes/bp-wall-admin.php
r840893 r1117501 271 271 } 272 272 } 273 274 275 276 277 -
buddypress-wall/trunk/includes/bp-wall-filters.php
r898843 r1117501 30 30 31 31 } 32 32 33 /** 33 34 * filters wall actions … … 159 160 function bp_wall_qs_filter( $query_string ) { 160 161 global $bp, $bp_wall; 161 162 162 $action = $bp->current_action; 163 164 163 165 164 // if we're on a different page than wall pass query_string as is … … 168 167 } 169 168 170 // if we have a page string in the query_string 171 $page_str = preg_match("/page=\d+/", $query_string, $m); 172 // so grab the number 173 $page = intval(str_replace("page=", "", $m[0])); 169 $page = 1; 170 if( !empty( $query_string) ) { 171 // if we have a page string in the query_string 172 $page_str = preg_match("/page=\d+/", $query_string, $m); 173 174 // so grab the number 175 $page = intval(str_replace("page=", "", $m[0])); 176 } 174 177 175 178 // load the activities for this page … … 183 186 184 187 } 185 186 188 187 189 add_filter('bp_get_the_notification_description', 'bp_wall_get_the_notification_description'); … … 206 208 207 209 return $description; 208 209 } 210 } -
buddypress-wall/trunk/includes/bp-wall-loader.php
r898179 r1117501 8 8 // Exit if accessed directly 9 9 if ( !defined( 'ABSPATH' ) ) exit; 10 11 12 // textdomain loader13 $textdomain_local = BP_WALL_PLUGIN_DIR . '/languages/buddypress-wall-' . get_locale() . '.mo';14 if ( file_exists( $textdomain_local ) )15 load_textdomain( 'bp-wall', $textdomain_local );16 else{17 $textdomain_global = trailingslashit( WP_LANG_DIR ) . 'buddypress-wall-' . get_locale() . '.mo';18 if( file_exists( $textdomain_global ) )19 load_textdomain( 'bp-wall', $textdomain_global );20 }21 10 22 11 /** … … 381 370 382 371 } 383 add_action( 'bp_loaded', 'bp_wall_load_core', 5 ); 372 add_action( 'bp_init', 'bp_wall_load_core', 5 ); 373 //add_action( 'bp_loaded', 'bp_wall_load_core', 5 ); -
buddypress-wall/trunk/includes/bp-wall-screens.php
r841095 r1117501 156 156 */ 157 157 public function is_bp_plugin() { 158 159 // first we reset the post 160 add_action( 'bp_template_include_reset_dummy_post_data', array( $this, 'directory_dummy_post' ) ); 161 // then we filter ‘the_content’ thanks to bp_replace_the_content 162 add_filter( 'bp_replace_the_content', array( $this, 'directory_content' ) ); 163 164 158 // first we reset the post 159 add_action( 'bp_template_include_reset_dummy_post_data', array( $this, 'directory_dummy_post' ) ); 160 // then we filter ‘the_content’ thanks to bp_replace_the_content 161 add_filter( 'bp_replace_the_content', array( $this, 'directory_content' ) ); 165 162 } 166 163 -
buddypress-wall/trunk/includes/js/bp-wall.js
r840893 r1117501 34 34 var keyCode = (e.keyCode) ? e.keyCode : e.which; 35 35 36 console.log(keyCode); 36 37 //if Shift+Enter keys was pressed 37 38 if ( keyCode == 13 && e.shiftKey ) { … … 159 160 160 161 form.slideDown( 200 ); 161 jq.scrollTo( form, 500, { offset:-100, easing:'easeOutQuad' } ); 162 //jq.scrollTo( form, 500, { offset:-100, easing:'easeOutQuad' } ); 163 jq.scrollTo( form, 500, { offset:-100} ); 162 164 jq('#ac-form-' + ids[2] + ' textarea').focus(); 163 165 -
buddypress-wall/trunk/includes/templates/bp-legacy/buddypress/activity/post-wall-form.php
r840893 r1117501 53 53 <p class="activity-greeting"><?php if ( bp_is_group() ) 54 54 printf( __( "What's new in %s, %s?", 'buddypress' ), bp_get_group_name(), bp_get_user_firstname() ); 55 56 elseif( bp_is_my_profile() && bp_is_user_activity() ) 55 elseif( ( bp_is_my_profile() && bp_is_user_activity() ) ) 57 56 //elseif( bp_is_page( BP_ACTIVITY_SLUG ) || bp_is_my_profile() && bp_is_user_activity() ) 58 57 printf( __( "What's new, %s?", 'buddypress' ), bp_get_user_firstname() ); -
buddypress-wall/trunk/loader.php
r898843 r1117501 5 5 Description: Turn your Buddypress Activity Component to a Facebook-style Wall. 6 6 Profiles with Facebook-style walls 7 Version: 0.9. 37 Version: 0.9.4 8 8 Requires at least: WP 3.4, BuddyPress 1.5 9 Tested up to: Wordpress 3.9 BuddyPress 2.09 Tested up to: Wordpress 4.1.1 BuddyPress 2.2.1 10 10 License: GNU General Public License 2.0 (GPL) http://www.gnu.org/licenses/gpl.html 11 11 Author: Meg@Info … … 18 18 19 19 /************************************************************************************************************* 20 --- BuddyPress Wall 0.9. 3---20 --- BuddyPress Wall 0.9.4 --- 21 21 *************************************************************************************************************/ 22 22 … … 26 26 // Define a constant that will hold the current version number of the component 27 27 // This can be useful if you need to run update scripts or do compatibility checks in the future 28 define( 'BP_WALL_VERSION', '0.9. 3' );28 define( 'BP_WALL_VERSION', '0.9.4' ); 29 29 30 30 // Define a constant that we can use to construct file paths throughout the component … … 42 42 define( 'BP_WALL_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); 43 43 44 define( 'BP_WALL_PLUGIN_DIR_PATH', plugin_dir_path( __FILE__ ) ); 45 46 47 /** 48 * textdomain loader. 49 * 50 * Checks WP_LANG_DIR for the .mo file first, then the plugin's language folder. 51 * Allows for a custom language file other than those packaged with the plugin. 52 * 53 * @uses load_textdomain() Loads a .mo file into WP 54 * @uses load_plugin_textdomain() Loads a .mo file into languages folder on plugin 55 */ 56 function bp_wall_load_textdomain() { 57 $mofile = sprintf( 'buddypress-wall-%s.mo', get_locale() ); 58 59 $mofile_global = trailingslashit( WP_LANG_DIR ) . $mofile; 60 $mofile_local = BP_WALL_PLUGIN_DIR_PATH . 'languages/' . $mofile; 61 62 if ( is_readable( $mofile_global ) ) { 63 return load_textdomain( 'bp-wall', $mofile_global ); 64 } elseif ( is_readable( $mofile_local ) ){ 65 //return load_plugin_textdomain( 'bp-activity-privacy', false, $mofile_local ); 66 return load_textdomain( 'bp-wall', $mofile_local ); 67 } 68 else 69 return false; 70 } 71 add_action( 'plugins_loaded', 'bp_wall_load_textdomain' ); 44 72 45 73 … … 127 155 /* Put setup procedures to be run when the plugin is activated in the following function */ 128 156 function bp_wall_activate() { 129 global $bp; 130 131 include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); 132 if ( !is_plugin_active( 'buddypress/bp-loader.php' ) ) { 157 // check if buddypress is active 158 if ( ! defined( 'BP_VERSION' ) ) { 133 159 //deactivate_plugins( basename( __FILE__ ) ); // Deactivate this plugin 134 160 die( _e( 'You cannot enable BuddyPress Wall, <strong>BuddyPress</strong> is not active. Please install and activate BuddyPress before trying to activate Buddypress Wall.' , 'bp-wall' ) ); 135 161 } 136 162 137 163 // Add the transient to redirect 138 164 set_transient( '_bp_wall_activation_redirect', true, 30 ); … … 157 183 158 184 function bp_wall_template_part_filter( $templates, $slug, $name ) { 159 160 185 if ( 'activity/index' == $slug ) { 161 186 //return bp_buffer_template_part( 'activity/index-wall' ); -
buddypress-wall/trunk/readme.txt
r898853 r1117501 3 3 Tags: buddypress, activity, wall, facebook, facebook style, facebook comment system, wall mode, like, unlike 4 4 Requires at least: WordPress 3.4, BuddyPress 1.5 5 Tested up to: WordPress 3. 9 / BuddyPress 2.06 Stable tag: 0.9. 35 Tested up to: WordPress 3.4.2 / BuddyPress 2.2.1 6 Stable tag: 0.9.4 7 7 8 8 … … 78 78 79 79 For bug reports or to add patches or translation files, visit the [Buddypress Wall Github page](https://github.com/dzmounir/buddypress-wall). 80 80 81 81 82 82 == Changelog == 83 = 0.9.4 = 84 * Compatibility with Buddypress 2.2.x 85 * Fix javascript error : jQuery.easing[this.easing] is not a function.* Fix Notice: bp_setup_current_user was called incorrectly. 86 83 87 = 0.9.3 = 84 88 * Fix empty activity title. 85 86 89 87 90 = 0.9.2 =
Note: See TracChangeset
for help on using the changeset viewer.