WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 2 years ago

#39794 reviewing defect (bug)

Notice if update_plugins cap is off

Reported by: sebastian.pisula Owned by: SergeyBiryukov
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Plugins Keywords: has-patch
Focuses: Cc:
PR Number:

Description

In wp-admin/includes/update.php:378 i have condition:

<?php
if ( ! current_user_can( 'update_plugins' ) ) {

then in plugins lists I should see notice "There is a new version of %1$s available. View version %4$s details"

But I don't see notice.

I think that problem is in wp_plugin_update_rows() function

Attachments (2)

39794.patch (647 bytes) - added by sebastian.pisula 3 years ago.
397941.patch (3.3 KB) - added by sebastian.pisula 3 years ago.
previous filter + fix context translation

Download all attachments as: .zip

Change History (7)

@sebastian.pisula
3 years ago

previous filter + fix context translation

#1 @sebastian.pisula
3 years ago

I add context because in Polish translation is error and I think that context will be helpful for translators.

#. translators: 1: theme name, 2: theme details URL, 3: additional link
#. attributes, 4: version number
#. translators: 1: plugin name, 2: details URL, 3: additional link attributes,
#. 4: version number
#. translators: 1: theme name, 2: details URL, 3: additional link attributes,
#. 4: version number
#: wp-admin/includes/theme.php:181 wp-admin/includes/update.php:380
#: wp-admin/includes/update.php:525
msgid "There is a new version of %1$s available. <a href=\"%2$s\" %3$s>View version %4$s details</a>."
msgstr "Dostępna jest nowa wersja motywu %1$s. <a href=\"%2$s\" %3$s>Zobacz informacje o wersji %4$s</a>."

#2 @SergeyBiryukov
3 years ago

  • Milestone changed from Awaiting Review to 4.8
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing

#3 @bhargavbhandari90
3 years ago

  • Keywords has-patch added
Last edited 3 years ago by bhargavbhandari90 (previous) (diff)

This ticket was mentioned in Slack in #core by flixos90. View the logs.


2 years ago

#5 @flixos90
2 years ago

  • Milestone changed from 4.8 to Future Release
Note: See TracTickets for help on using tickets.