Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated code to display plugin settings link in the features screen and fix responsive layout for mobile #1208

Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
d11dfee
Updated code to display plugin settings link in the features screen
ashwinparthasarathi May 7, 2024
c7cd3d1
Merge branch 'trunk' into add/plugin-settings-link-in-features-screen
ashwinparthasarathi May 7, 2024
3fd724e
Merge branch 'WordPress:trunk' into add/plugin-settings-link-in-featu…
ashwinparthasarathi May 8, 2024
e88f109
Updated code to fetch plugin path from plugin list
ashwinparthasarathi May 8, 2024
e7dbfa6
Merge branch 'add/plugin-settings-link-in-features-screen' of github.…
ashwinparthasarathi May 8, 2024
95642a3
Fix function stub docs
mukeshpanchal27 May 7, 2024
2da8c22
Bump PHPStan level to 5
westonruter May 6, 2024
c197b9f
Ignore phpstan errors when testing for incorrect usage
westonruter May 6, 2024
1501ebc
Fix types for arguments passed in tests
westonruter May 6, 2024
bc55f7a
Add rememberPossiblyImpureFunctionValues:false to fix it_should_use_t…
westonruter May 6, 2024
d024264
Add comments explaining why PHPStan is ignored
westonruter May 7, 2024
8067df4
Updated code to fetch plugin path from plugin list
ashwinparthasarathi May 8, 2024
b4b73ca
fix: avoid needless array allocation in rgb to hex conversion
ju1ius Apr 1, 2024
3a3d733
Ensure RGB variable is int
westonruter May 8, 2024
2473091
Add test case for when RGB values are too high
westonruter May 8, 2024
91b1f73
Merge branch 'add/plugin-settings-link-in-features-screen' of github.…
ashwinparthasarathi May 8, 2024
0fe54ec
Moved Settings to the last action link and made review changes.
ashwinparthasarathi May 13, 2024
eecfad1
Moved Settings to the last action link
ashwinparthasarathi May 13, 2024
08b83aa
Merge branch 'trunk' into add/plugin-settings-link-in-features-screen
westonruter May 13, 2024
606c4e3
Added settings link to activation admin notice.
ashwinparthasarathi May 15, 2024
18a71cc
Changed as per review shared.
ashwinparthasarathi May 16, 2024
0cf11f5
Updated the admin notice for conditions
ashwinparthasarathi May 16, 2024
b946a4d
Updated as per review changes.
ashwinparthasarathi May 16, 2024
3e6b9d4
Updated as per review changes.
ashwinparthasarathi May 16, 2024
ea00ad5
Merge branch 'trunk' into add/plugin-settings-link-in-features-screen
ashwinparthasarathi May 16, 2024
af3b5a9
Improve sanitization logic for plugin slug
westonruter May 16, 2024
c7ba02c
Prevent Settings link from overflowing plugin card
westonruter May 16, 2024
893e91b
Factor out common plugin slug sanitization logic
westonruter May 16, 2024
57e0f8e
Fix presentation of plugin cards on mobile
westonruter May 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions includes/admin/plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,7 @@ function perflab_render_plugin_card( array $plugin_data ): void {
/** This filter is documented in wp-admin/includes/class-wp-plugin-install-list-table.php */
$description = apply_filters( 'plugin_install_description', $description, $plugin_data );

$availability = perflab_get_plugin_availability( $plugin_data );

$availability = perflab_get_plugin_availability( $plugin_data );
$compatible_php = $availability['compatible_php'];
$compatible_wp = $availability['compatible_wp'];

Expand All @@ -325,6 +324,12 @@ function perflab_render_plugin_card( array $plugin_data ): void {
'<button type="button" class="button button-disabled" disabled="disabled">%s</button>',
esc_html( _x( 'Active', 'plugin', 'default' ) )
);
$plugin_path = $plugin_data['slug'] . '/load.php';
ashwinparthasarathi marked this conversation as resolved.
Show resolved Hide resolved
$plugin_links = apply_filters( "plugin_action_links_{$plugin_path}", array() );

if ( array_key_exists( 'settings', $plugin_links ) ) {
$action_links[] = $plugin_links['settings'];
}
} elseif (
$availability['compatible_php'] &&
$availability['compatible_wp'] &&
Expand Down
Loading