Skip to content

Commit

Permalink
Update readme file and fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
raftaar1191 committed Feb 13, 2024
1 parent c73cf5a commit f84bce1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 23 deletions.
10 changes: 5 additions & 5 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
=== Plugin Name ===
Contributors: (this should be a list of wordpress.org userid's)
Contributors: acrosswp, raftaar1191
Donate link: https://acrosswp.com/downloads/pin-comment/
Tags: buddyboss, buddyboss-platform, pin-comment, pin, pin-activity
Requires at least: 4.9.1
Tested up to: 6.2.2
Tags: pin-comment, pin, pin-activity, buddyboss-platform-plugins, buddyboss-platform
Requires at least: 6.0
Tested up to: 6.4.3
Requires PHP: 5.6.20
Stable tag: 1.0.2
Stable tag: 1.0.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down
4 changes: 2 additions & 2 deletions admin/update/class-pin-comment-update.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function version_1_0_0( $acrosswp_plugin_update ) {

$update_running = get_option( $key, false );
if ( empty( $update_running ) ) {
$results = $wpdb->get_results( "SELECT id FROM $activity_table_name WHERE `type` = 'activity_comment'", ARRAY_N );
$results = $wpdb->get_results( $wpdb->prepare( "SELECT id FROM %s WHERE `type` = 'activity_comment'", $activity_table_name ), ARRAY_N );
$count_result = count( $results );

$total_page = $count_result <= $per_page ? 1 : ceil( $count_result/$per_page );
Expand All @@ -118,7 +118,7 @@ public function version_1_0_0( $acrosswp_plugin_update ) {
$offset = $current_page * $per_page;
$current_page++;

$results = $wpdb->get_results( "SELECT id FROM $activity_table_name WHERE `type` = 'activity_comment' ORDER BY `id` DESC LIMIT $per_page OFFSET $offset", ARRAY_N );
$results = $wpdb->get_results( $wpdb->prepare( "SELECT id FROM %s WHERE `type` = 'activity_comment' ORDER BY `id` DESC LIMIT %s OFFSET %d", $activity_table_name, $per_page, $offset ), ARRAY_N );

/**
* Check if this is empty or not
Expand Down
16 changes: 2 additions & 14 deletions languages/pin-comment.pot
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Copyright (C) 2023 Pin Comment
# Copyright (C) 2024 Pin Comment
# This file is distributed under the same license as the Pin Comment package.
msgid ""
msgstr ""
"Project-Id-Version: Pin Comment\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2023-11-08 15:54+0000\n"
"POT-Creation-Date: 2024-02-13 09:58+0000\n"
"Report-Msgid-Bugs-To: https://github.com/acrosswp/pin-comment/issues\n"
"X-Poedit-Basepath: ..\n"
"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
Expand Down Expand Up @@ -39,18 +39,6 @@ msgstr ""
msgid "Allow Post Author to pin comments in posts"
msgstr ""

#: includes/dependency/buddyboss.php:13
msgid "<strong>%s</strong></a> requires the BuddyBoss Platform plugin to work. Please <a href=\"https://buddyboss.com/platform/\" target=\"_blank\">install BuddyBoss Platform</a> first."
msgstr ""

#: includes/dependency/buddyboss.php:27
msgid "<strong>%s</strong></a> requires BuddyBoss Platform plugin version %s or higher to work. Please update BuddyBoss Platform."
msgstr ""

#: includes/dependency/buddyboss.php:61
msgid "<strong>%s</strong></a> requires BuddyBoss Platform %s Component to work. Please Active the mentions Component."
msgstr ""

#: public/class-pin-comment-public.php:123, public/class-pin-comment-public.php:149
msgid "Unpin Comment"
msgstr ""
Expand Down
4 changes: 2 additions & 2 deletions pin-comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
* @wordpress-plugin
* Plugin Name: Pin Comment for BuddyBoss Platform
* Plugin URI: https://acrosswp.com/downloads/pin-comment/
* Description: Pin Comment by AcrossWP
* Version: 1.0.2
* Description: Allow Post Author and Site admin to Pin Comment inside the Activity Area of BuddyBoss Platform
* Version: 1.0.3
* Author: AcrossWP
* Author URI: https://acrosswp.com
* License: GPL-2.0+
Expand Down

0 comments on commit f84bce1

Please sign in to comment.