new test topic by robin

start text Forums For Hire new test topic by robin

Viewing 1 reply thread
  • Author
    Posts
    • #27919
      admin
      Keymaster
      Keymaster

      Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /www/sites/e12/ee6/gos.rewweb.co.uk/web/wp-includes/functions.php on line 4773

       

      this is some code

       

       

    • #27920
      admin
      Keymaster
      Keymaster

      Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /www/sites/e12/ee6/gos.rewweb.co.uk/web/wp-includes/functions.php on line 4773

      <pre>

      foreach( $pieces as $piece ) {
      if( preg_match( $pattern_contents, $piece, $matches ) ) {

      // Display raw content between <pre> tags
      $new_content .= ‘<pre>’.trim($matches[1]).'</pre>’;

        } else {
         // Filter through this content piece for <code> tags
      $pattern_code_full = ‘{(<code>.*?\</code>)}is’;
      $pattern_code_contents = ‘{<code>(.*?)</code>}is’;
      $code_pieces = preg_split( $pattern_code_full, $piece, -1, PREG_SPLIT_DELIM_CAPTURE );

      // Only apply make_clickable() if not in a <code> tag.
      $new_piece = ”;
      foreach( $code_pieces as $code_piece ) {
      if( preg_match( $pattern_code_contents, $code_piece, $code_matches ) )
      $new_piece .= ‘<code>’.trim($code_matches[1]).'</code>’;
      else
      $new_piece .= make_clickable( $code_piece );
      }

      // And now finish it off by applying wpautop to the whole chunk.
      $new_content .= wpautop( $new_piece );
      }
      }

      return $new_content;
      }

      </pre>
Viewing 1 reply thread
  • You must be logged in to reply to this topic.

start text Forums For Hire new test topic by robin