Skip to content

Commit 8d0828e

Browse files
committed
1.1.2 Update table stats and correct query-optimization error.
1 parent 26e1078 commit 8d0828e

File tree

3 files changed

+89
-43
lines changed

3 files changed

+89
-43
lines changed

admin/views/page.php

+27-15
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,38 @@
1010
* @package Index_Wp_Users_For_Speed
1111
* @subpackage Index_Wp_Users_For_Speed/admin/views
1212
*/
13+
namespace IndexWpUsersForSpeed;
1314

1415
use IndexWpUsersForSpeed\Indexer;
1516

17+
/** @noinspection HtmlUnknownTarget */
18+
$hyperlink = '<a href="%s" target="_blank">%s</a>';
19+
$supportUrl = "https://wordpress.org/support/plugin/index-wp-users-for-speed/";
20+
$reviewUrl = "https://wordpress.org/support/plugin/index-wp-users-for-speed/reviews/";
21+
$clickHere = __( 'click here', 'index-wp-users-for-speed' );
22+
$support = sprintf( $hyperlink, $supportUrl, $clickHere );
23+
$review = sprintf( $hyperlink, $reviewUrl, $clickHere );
24+
/* translators: 1: embeds "For help please ..." 2: hyperlink to review page on wp.org */
25+
$supportString = '<p>' . __( 'For support please %1$s. Please %2$s to rate this plugin. Your feedback helps make it better, faster, and more useful.', 'index-wp-users-for-speed' ) . '</p>';
26+
$supportString = sprintf( $supportString, $support, $review );
27+
1628
settings_errors( $this->options_name );
1729
?>
1830

1931
<div class="wrap index-users">
20-
<h2 class="wp-heading-inline"><?php echo get_admin_page_title(); ?></h2>
21-
<p>
22-
<span><?php esc_html_e( 'Approximate number of users on this entire site', 'index-wp-users-for-speed' ) ?>: </span>
23-
<span><?php echo esc_html(number_format_i18n( Indexer::getNetworkUserCount(), 0 )) ?></span>
24-
</p>
25-
<!--suppress HtmlUnknownTarget -->
26-
<form id="index-users-form" method="post" action="options.php">
27-
<?php
28-
settings_fields( $this->options_name );
29-
do_settings_sections( $this->plugin_name );
30-
submit_button( );
31-
?>
32-
</form>
33-
</div>
34-
32+
<h2 class="wp-heading-inline"><?php echo get_admin_page_title(); ?></h2>
3533

34+
<p><?php echo $supportString ?></p>
35+
<p>
36+
<span><?php esc_html_e( 'Approximate number of users on this entire site', 'index-wp-users-for-speed' ) ?>: </span>
37+
<span><?php echo esc_html( number_format_i18n( Indexer::getNetworkUserCount(), 0 ) ) ?></span>
38+
</p>
39+
<!--suppress HtmlUnknownTarget -->
40+
<form id="index-users-form" method="post" action="options.php">
41+
<?php
42+
settings_fields( $this->options_name );
43+
do_settings_sections( $this->plugin_name );
44+
submit_button();
45+
?>
46+
</form>
47+
</div>

languages/index-wp-users-for-speed.pot

+37-21
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# Copyright (C) 2022 OllieJones
1+
# Copyright (C) 2022 Oliver Jones
22
# This file is distributed under the GPL v2 or later.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Index WP Users For Speed 1.1.1\n"
5+
"Project-Id-Version: Index WP Users For Speed 1.1.2\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/index-wp-users-for-speed\n"
77
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
88
"Language-Team: LANGUAGE <[email protected]>\n"
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=UTF-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
12-
"POT-Creation-Date: 2022-10-15T13:11:25-04:00\n"
12+
"POT-Creation-Date: 2022-10-18T16:11:33-04:00\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1414
"X-Generator: WP-CLI 2.6.0\n"
1515
"X-Domain: index-wp-users-for-speed\n"
@@ -28,7 +28,7 @@ msgid "Speed up your WordPress site with many users."
2828
msgstr ""
2929

3030
#. Author of the plugin
31-
msgid "OllieJones"
31+
msgid "Oliver Jones"
3232
msgstr ""
3333

3434
#. Author URI of the plugin
@@ -52,11 +52,11 @@ msgid "...at this time"
5252
msgstr ""
5353

5454
#: admin/admin.php:84
55-
msgid "Controlling choice of authors"
55+
msgid "Choosing authors when editing posts and pages"
5656
msgstr ""
5757

5858
#: admin/admin.php:89
59-
msgid "Show a maximum of"
59+
msgid "Use selection boxes"
6060
msgstr ""
6161

6262
#: admin/admin.php:129
@@ -76,40 +76,47 @@ msgstr ""
7676
msgid "Automatic index rebuilding disabled"
7777
msgstr ""
7878

79-
#: admin/admin.php:224
79+
#: admin/admin.php:225
8080
msgid "You may rebuild your user indexes each day, or immediately."
8181
msgstr ""
8282

83-
#: admin/admin.php:225
83+
#: admin/admin.php:226
8484
msgid "(It is possible for them to become out-of-date.)"
8585
msgstr ""
8686

87-
#: admin/admin.php:233
88-
msgid "Author-choice menus can be unwieldy when your site has many authors. You can limit the number of choices presented at a time. To narrow down your choices you can type more of the author's name into the menu."
89-
msgstr ""
90-
91-
#: admin/admin.php:249
87+
#: admin/admin.php:242
9288
msgid "daily"
9389
msgstr ""
9490

95-
#: admin/admin.php:257
91+
#: admin/admin.php:250
9692
msgid "never"
9793
msgstr ""
9894

99-
#: admin/admin.php:266
95+
#: admin/admin.php:259
10096
msgid "immediately, then daily"
10197
msgstr ""
10298

103-
#: admin/admin.php:275
99+
#: admin/admin.php:268
104100
msgid "immediately, but not daily"
105101
msgstr ""
106102

107-
#: admin/admin.php:293
103+
#: admin/admin.php:286
108104
msgid "Avoid rebuilding exactly on the hour to avoid contending with other processing jobs."
109105
msgstr ""
110106

111-
#: admin/admin.php:332
112-
msgid "choices at once in author selection menus."
107+
#: admin/admin.php:316
108+
msgid ""
109+
"Author-choice dropdown menus can be unwieldy when your site has many authors. If you have more than this number of authors, you will see selection boxes instead of dropdown menus. Choose an author by typing a few characters of the name into the selection box.\n"
110+
" \n"
111+
" "
112+
msgstr ""
113+
114+
#: admin/admin.php:330
115+
msgid "when you have more than"
116+
msgstr ""
117+
118+
#: admin/admin.php:337
119+
msgid "authors registered on your site."
113120
msgstr ""
114121

115122
#: admin/progressbar.php:51
@@ -133,14 +140,23 @@ msgstr ""
133140
msgid "You may use your site normally during index building."
134141
msgstr ""
135142

136-
#: admin/views/page.php:22
143+
#: admin/views/page.php:20
144+
msgid "click here"
145+
msgstr ""
146+
147+
#. translators: 1: embeds "For help please ..." 2: hyperlink to review page on wp.org
148+
#: admin/views/page.php:24
149+
msgid "For support please %1$s. Please %2$s to rate this plugin. Your feedback helps make it better, faster, and more useful."
150+
msgstr ""
151+
152+
#: admin/views/page.php:35
137153
msgid "Approximate number of users on this entire site"
138154
msgstr ""
139155

140156
#: includes/indexer.php:172
141157
msgid "Still counting users..."
142158
msgstr ""
143159

144-
#: includes/selection-box.php:100
160+
#: includes/selection-box.php:108
145161
msgid "Type the author's name"
146162
msgstr ""

readme.txt

+25-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
=== Index WP Users For Speed ===
22
Contributors: Oliver Jones
3-
Tags: users, database, index, performance, largesite
3+
Tags: users, database, index, performance, largesite, dashboard
44
Requires at least: 5.2
55
Tested up to: 6.1
66
Requires PHP: 5.6
7-
Stable tag: 1.1.1
7+
Stable tag: 1.1.2
88
Network: true
99
License: GPL v2 or later
1010
License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -15,7 +15,7 @@ Primary Branch: main
1515
Text Domain: index-wp-users-for-speed
1616
Domain Path: /languages
1717

18-
Do you have thousands of users on your WordPress site? Look them up fast by indexing them in your metadata. Eliminate slow loading on Users, Posts, and Pages panels in your dashboard.
18+
Do you have thousands of users on your WordPress site? Look them up fast. Find authors more easily. Speed up your laggy dashboard.
1919

2020
== Description ==
2121

@@ -82,15 +82,33 @@ Once the indexing rows are in place, you can add, delete, or change user roles w
8282

8383
WordPress's trac (defect-tracking) system has [this ticket # 38741](https://core.trac.wordpress.org/ticket/38741).
8484

85+
<h4>Why?</h4>
86+
87+
Three reasons (maybe four):
88+
89+
1. to save carbon footprint.
90+
2. to save carbon footprint.
91+
3. to save carbon footprint.
92+
4. to save people time.
93+
94+
Seriously, the microwatt hours of electricity saved by faster web site technologies add up fast, especially at WordPress's global scale.
95+
8596
== Installation ==
8697

87-
Install and activate this plugin in the usual way via the Plugins panel in your site's dashboard.
98+
Install and activate this plugin in the usual way via the Plugins panel in your site's dashboard. Once you have activated it, configure it via the Index for Speed menu item under Users.
99+
100+
101+
= WP-CLI =
102+
103+
`wp plugin install index-wp-users-for-speed
104+
wp plugin activate index-wp-users-for-speed
105+
`
106+
= Composer =
88107

89-
Or, if you use [composer](https://getcomposer.org/) to configure your site, install it with this command.
108+
If you configure your WordPress installation using composer, you may install this plugin into your WordPress top level configuration with the command
90109

91-
`composer require wpackagist-plugin/index-wp-users-for-speed`
110+
`composer require "wpackagist-plugin/index-wp-users-for-speed":"^1.1"`
92111

93-
Once you have activated it, configure it via the Index for Speed menu item under Users.
94112

95113
= Credits =
96114
* "Crowd", a photo by James Cridland, in the banner and icon. [CC BY 2.0](https://creativecommons.org/licenses/by/2.0/)

0 commit comments

Comments
 (0)