X: Fatal Error After Update; Recent Posts in child functions.php

Hi there, I hit a snag testing X (v6) and bundled Cornerstone with the Ethos stack.
At least one or more functions in the child theme have broken.
Fatal error: Call to undefined function csl18n() in /path-to-site/wp-content/themes/x-child/functions.php on line 559

Line 559:

  $output .= '<a class="x-recent-post' . $count . ' ' . $image_output_class . '" href="' . get_permalink( get_the_ID() ) . '" title="' . esc_attr( sprintf( __( 'Permalink to: "%s"', csl18n() ), the_title_attribute( 'echo=0' ) ) ) . '">'

The whole thing is here:

Hi there,

Please update the line that is causing the error to:

  $output .= '<a class="x-recent-post' . $count . ' ' . $image_output_class . '" href="' . get_permalink( get_the_ID() ) . '" title="' . esc_attr( sprintf( csi18n('shortcodes.recent-posts-permalink'), the_title_attribute( 'echo=0' ) ) ) . '">'

Hope this helps.

Hi, that seems to work.
Where do I find out more about this shortcodes.recent-posts-permalink ?
Best,

Hi there,

You can find the shortcodes in:

wp-content\plugins\cornerstone\includes\shortcodes

Hope this helps.

ok thanks.

You’re welcome! :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.