Skip to content

Commit cc05d8c

Browse files
authored
Merge pull request #842 from Codeinwp/bugfix/841
Fix wp screen option per page value with DB
2 parents d42b04f + 5aae41d commit cc05d8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

classes/Visualizer/Module/Admin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ function addScreenOptions() {
703703
$args = array(
704704
'label' => __( 'Number of charts per page:', 'visualizer' ),
705705
'default' => 6,
706-
'option' => 'visualizer_per_page_library',
706+
'option' => 'visualizer_library_per_page',
707707
);
708708
add_screen_option( 'per_page', $args );
709709
}
@@ -712,7 +712,7 @@ function addScreenOptions() {
712712
* Returns the screen option for pagination.
713713
*/
714714
function setScreenOptions( $status, $option, $value ) {
715-
if ( 'visualizer_per_page_library' === $option ) {
715+
if ( 'visualizer_library_per_page' === $option ) {
716716
return $value;
717717
}
718718
}

0 commit comments

Comments
 (0)