Plugin Directory

Changeset 3028218


Ignore:
Timestamp:
01/29/2024 12:38:01 PM (2 years ago)
Author:
appfulapp
Message:

Improvde post content footer fetching

Location:
appful-app
Files:
7 deleted
5 edited
299 copied

Legend:

Unmodified
Added
Removed
  • appful-app/tags/3.1.21/appful-app.php

    r3027388 r3028218  
    1212 * Plugin URI:        https://appful.io
    1313 * Description:       Appful® is the number 1 plugin for turning your WordPress Content into a native, beautiful app on iOS & Android in under 5 minutes.
    14  * Version:           3.1.20
     14 * Version:           3.1.21
    1515 * Requires at least: 5.8
    1616 * Requires PHP:      7.4
  • appful-app/tags/3.1.21/includes/api/mapper/BlogInfoMapper.php

    r3027388 r3028218  
    2626            $blog_info->get_token(),
    2727            $hooks,
    28             "3.1.20",
     28            "3.1.21",
    2929            $stats
    3030        );
  • appful-app/tags/3.1.21/includes/wp/WPPostManager.php

    r3027388 r3028218  
    173173            // We have to reset our buffers and call the function again
    174174
    175             // We don't care about the content as we will repeat the call
    176             // with the correct buffer count. After this call we
    177             // should be at the original buffer level
    178             self::accumulate_buffer_data( $buffer_level_original );
    179 
    180             // Start our custom buffer which we want to use to get the content
    181             ob_start();
    182 
    183             // This is the buffer level before the content call with our custom buffer
    184             $buffer_level_start = ob_get_level();
     175            // Even tho there were more buffers closed than opened before, we assume that
     176            // there are not more than 100 and accumulate all the output
     177            $output = self::accumulate_buffer_data( $buffer_level_original );
    185178
    186179            // Open the correct amount of buffers which are closed in the call
    187180            $closed_buffer_count = $buffer_level_fill - $buffer_level_end;
    188             Logger::debug( "Opening " . $closed_buffer_count . " extra buffers to get content" );
    189             while ( $closed_buffer_count > 0 ) {
    190                 ob_start();
    191                 $closed_buffer_count --;
    192             }
    193 
    194             call_user_func( $data_callback );
    195 
    196             // Now the buffer level should match with the original one
    197             Logger::debug( "Difference between start level and level after call: " . ( ob_get_level() - $buffer_level_start ) );
    198 
    199             return self::accumulate_buffer_data( $buffer_level_original );
     181            Logger::debug( $closed_buffer_count . " extra buffers where closed" );
     182
     183            return $output;
    200184        } else {
    201185            Logger::debug( "Buffer level normal, getting data without adjustment" );
     
    226210        }
    227211
    228         // We try to initialize a "frontend" theme so that alle hooks etc.
     212        // We try to initialize a "frontend" theme so that all hooks etc.
    229213        // by plugins are setup correctly
    230214        do_action( 'template_redirect' );
  • appful-app/tags/3.1.21/lib/vendor/composer/installed.php

    r3027388 r3028218  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => '51e3f63650fb4b610edc705bf0899e6850b8d8ac',
     6        'reference' => '8a33ea6e2270e3e3016ee76d676b39b857c3c1f9',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
    16             'reference' => '51e3f63650fb4b610edc705bf0899e6850b8d8ac',
     16            'reference' => '8a33ea6e2270e3e3016ee76d676b39b857c3c1f9',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
  • appful-app/tags/3.1.21/readme.txt

    r3027388 r3028218  
    66Tested up to: 6.4
    77Requires PHP: 7.4
    8 Stable tag: 3.1.20
     8Stable tag: 3.1.21
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • appful-app/trunk/appful-app.php

    r3027388 r3028218  
    1212 * Plugin URI:        https://appful.io
    1313 * Description:       Appful® is the number 1 plugin for turning your WordPress Content into a native, beautiful app on iOS & Android in under 5 minutes.
    14  * Version:           3.1.20
     14 * Version:           3.1.21
    1515 * Requires at least: 5.8
    1616 * Requires PHP:      7.4
  • appful-app/trunk/includes/api/mapper/BlogInfoMapper.php

    r3027388 r3028218  
    2626            $blog_info->get_token(),
    2727            $hooks,
    28             "3.1.20",
     28            "3.1.21",
    2929            $stats
    3030        );
  • appful-app/trunk/includes/wp/WPPostManager.php

    r3027388 r3028218  
    173173            // We have to reset our buffers and call the function again
    174174
    175             // We don't care about the content as we will repeat the call
    176             // with the correct buffer count. After this call we
    177             // should be at the original buffer level
    178             self::accumulate_buffer_data( $buffer_level_original );
    179 
    180             // Start our custom buffer which we want to use to get the content
    181             ob_start();
    182 
    183             // This is the buffer level before the content call with our custom buffer
    184             $buffer_level_start = ob_get_level();
     175            // Even tho there were more buffers closed than opened before, we assume that
     176            // there are not more than 100 and accumulate all the output
     177            $output = self::accumulate_buffer_data( $buffer_level_original );
    185178
    186179            // Open the correct amount of buffers which are closed in the call
    187180            $closed_buffer_count = $buffer_level_fill - $buffer_level_end;
    188             Logger::debug( "Opening " . $closed_buffer_count . " extra buffers to get content" );
    189             while ( $closed_buffer_count > 0 ) {
    190                 ob_start();
    191                 $closed_buffer_count --;
    192             }
    193 
    194             call_user_func( $data_callback );
    195 
    196             // Now the buffer level should match with the original one
    197             Logger::debug( "Difference between start level and level after call: " . ( ob_get_level() - $buffer_level_start ) );
    198 
    199             return self::accumulate_buffer_data( $buffer_level_original );
     181            Logger::debug( $closed_buffer_count . " extra buffers where closed" );
     182
     183            return $output;
    200184        } else {
    201185            Logger::debug( "Buffer level normal, getting data without adjustment" );
     
    226210        }
    227211
    228         // We try to initialize a "frontend" theme so that alle hooks etc.
     212        // We try to initialize a "frontend" theme so that all hooks etc.
    229213        // by plugins are setup correctly
    230214        do_action( 'template_redirect' );
  • appful-app/trunk/lib/vendor/composer/installed.php

    r3027388 r3028218  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => '51e3f63650fb4b610edc705bf0899e6850b8d8ac',
     6        'reference' => '8a33ea6e2270e3e3016ee76d676b39b857c3c1f9',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
    16             'reference' => '51e3f63650fb4b610edc705bf0899e6850b8d8ac',
     16            'reference' => '8a33ea6e2270e3e3016ee76d676b39b857c3c1f9',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
  • appful-app/trunk/readme.txt

    r3027388 r3028218  
    66Tested up to: 6.4
    77Requires PHP: 7.4
    8 Stable tag: 3.1.20
     8Stable tag: 3.1.21
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.