// Backward compatibility with old method of passing arguments.
if(!is_array($args)||func_num_args()>1){
if(!is_array($args)||count($function_args)>1){
_deprecated_argument(__METHOD__,'1.6',sprintf(__('Arguments passed to %1$s should be in an associative array. See the inline documentation at %2$s for more details.','buddypress'),__METHOD__,__FILE__));
// Backward compatibility with old method of passing arguments.
if(!is_array($args)||func_num_args()>1){
if(!is_array($args)||count($function_args)>1){
_deprecated_argument(__METHOD__,'1.6',sprintf(__('Arguments passed to %1$s should be in an associative array. See the inline documentation at %2$s for more details.','buddypress'),__METHOD__,__FILE__));
<p><labelfor="<?phpecho$this->get_field_id('title');?>"><?php_ex('Title:','Label for the Title field of the Recent Networkwide Posts widget','buddypress');?><inputclass="widefat"id="<?phpecho$this->get_field_id('title');?>"name="<?phpecho$this->get_field_name('title');?>"type="text"value="<?phpechoesc_attr($title);?>"style="width: 100%;"/></label></p>
<p><labelfor="<?phpecho$this->get_field_id('link_title');?>"><inputtype="checkbox"name="<?phpecho$this->get_field_name('link_title');?>"value="1"<?phpchecked($link_title);?>/><?php_e('Link widget title to Blogs directory','buddypress');?></label></p>
<p><labelfor="<?phpecho$this->get_field_id('max_posts');?>"><?php_e('Max posts to show:','buddypress');?><inputclass="widefat"id="<?phpecho$this->get_field_id('max_posts');?>"name="<?phpecho$this->get_field_name('max_posts');?>"type="text"value="<?phpechoesc_attr($max_posts);?>"style="width: 30%"/></label></p>
<p><labelfor="<?phpecho$this->get_field_id('max_posts');?>"><?php_e('Max posts to show:','buddypress');?><inputclass="widefat"id="<?phpecho$this->get_field_id('max_posts');?>"name="<?phpecho$this->get_field_name('max_posts');?>"type="number"min="1"max="<?phpechoesc_attr($max_limit);?>"value="<?phpechoesc_attr($max_posts);?>"style="width: 30%"/></label></p>
@@ -488,3 +488,82 @@ function bp_core_admin_notice_repopulate_blogs_resume() {
echo'<div class="error"><p>'.__('It looks like you have more sites to record. Resume recording by checking the "Repopulate site tracking records" option.','buddypress').'</p></div>';